From: Daniel Terhorst-North Date: Wed, 1 Nov 2023 16:35:26 +0000 (+0000) Subject: tpl/tplimpl: Fix incorrect lastBuildDate X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=87bf2b968;p=brevno-suite%2Fhugo tpl/tplimpl: Fix incorrect lastBuildDate Fixes #11600 Co-authored-by: Joe Mooring --- 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 @@ {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} {{ . }}{{ end }}{{ if not .Date.IsZero }} - {{ (index $pages.ByLastmod.Reverse 0).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} + {{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} {{- with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{- end }}