Skip to content

Commit 87bf2b9

Browse files
tastapodjmooring
authored andcommitted
tpl/tplimpl: Fix incorrect lastBuildDate
Fixes #11600 Co-authored-by: Joe Mooring <joe@mooring.com>
1 parent f281ef8 commit 87bf2b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tpl/tplimpl/embedded/templates/_default

tpl/tplimpl/embedded/templates/_default/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }}
5454
<webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }}
5555
<copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }}
56-
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
56+
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
5757
{{- with .OutputFormats.Get "RSS" }}
5858
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
5959
{{- end }}

0 commit comments

Comments
 (0)