Skip to content

Commit 74ceb5e

Browse files
jmooringadityatelange
authored andcommitted
[PATCH] tpl/tplimpl: Update RSS template
- Use publication date for pubdate - Include version in generator element cherry-picked from gohugoio/hugo@f0a26cf
1 parent beb281a commit 74ceb5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

layouts/_default/rss.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<link>{{ index . 0 | absURL }}</link>
5656
</image>
5757
{{- end }}
58-
<generator>Hugo -- gohugo.io</generator>
58+
<generator>Hugo -- {{ hugo.Version }}</generator>
5959
<language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }}
6060
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
6161
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with site.Copyright }}
@@ -69,7 +69,7 @@
6969
<item>
7070
<title>{{ .Title }}</title>
7171
<link>{{ .Permalink }}</link>
72-
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
72+
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
7373
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
7474
<guid>{{ .Permalink }}</guid>
7575
<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>

0 commit comments

Comments
 (0)