Skip to content

Commit 31f6976

Browse files
committed
Revert to default RSS template (but only include news items).
1 parent f780ec2 commit 31f6976

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Diff for: layouts/rss.xml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
22
<channel>
3-
<title>{{ .Title }} on {{ .Site.Title }} </title>
3+
<title>{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}</title>
44
<link>{{ .Permalink }}</link>
5-
<language>en-US</language>
6-
<author>Dave Täht</author>
7-
<rights>Copyright (c) 2016, Michael D. Taht; all rights reserved.</rights>
8-
<updated>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</updated>
9-
{{ range first 15 .Data.Pages }}
5+
<description>Recent news {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
6+
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
7+
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
8+
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
9+
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
10+
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
11+
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
12+
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
13+
{{ range first 15 (where .Site.Pages.ByDate.Reverse "Type" "=" "news") }}
1014
<item>
1115
<title>{{ .Title }}</title>
1216
<link>{{ .Permalink }}</link>
13-
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate>
14-
<author>Dave Täht</author>
17+
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
18+
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
1519
<guid>{{ .Permalink }}</guid>
1620
<description>{{ .Content | html }}</description>
1721
</item>

0 commit comments

Comments
 (0)