diff options
author | Daniel Terhorst-North <daniel@dannorth.net> | 2023-11-01 16:35:26 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2024-01-25 19:46:52 +0100 |
commit | 87bf2b9688cbcfdb9b7aab00ce9e54095b56a47b (patch) | |
tree | 9ac78cdbb930225b4513de6d339161e92064aead | |
parent | f281ef8a4af27b7ab789d25c29751b4a7bd8b34e (diff) |
tpl/tplimpl: Fix incorrect lastBuildDate
Fixes #11600
Co-authored-by: Joe Mooring <joe@mooring.com>
-rw-r--r-- | tpl/tplimpl/embedded/templates/_default/rss.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates/_default/rss.xml b/tpl/tplimpl/embedded/templates/_default/rss.xml index c997be31c..eb5ed7d48 100644 --- a/tpl/tplimpl/embedded/templates/_default/rss.xml +++ b/tpl/tplimpl/embedded/templates/_default/rss.xml @@ -53,7 +53,7 @@ <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} - <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).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 }} {{- with .OutputFormats.Get "RSS" }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} {{- end }} |