We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66904cc commit a184c53Copy full SHA for a184c53
1 file changed
layouts/_default/rss.xml
@@ -60,7 +60,7 @@
60
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
61
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with site.Copyright }}
62
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
63
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
64
{{- with .OutputFormats.Get "RSS" }}
65
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
66
{{- end }}
0 commit comments