From 12f31dfd8a935f6b9877a30b884d8f2cb6e7c959 Mon Sep 17 00:00:00 2001 From: Anthony Simmon Date: Sat, 7 Sep 2024 08:22:17 -0400 Subject: [PATCH] fix: use Hugo's default RSS template value source for lastBuildDate (#1006) Use Hugo's default RSS template value source for lastBuildDate --- layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 5874559..3d2e592 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -22,7 +22,7 @@ {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Params.Author.email }} {{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} - {{ .Date.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 -}}