Change RSS lastBuildDate to use section dates

This commit is contained in:
Will Faught
2023-09-23 13:35:13 -07:00
parent 8604897291
commit 12e486cdbd
2 changed files with 9 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
{{ $copyright := site.Copyright }}
{{ $description := or $page.Description "Recent content" }}
{{ $html := $page.AlternativeOutputFormats.Get "html" }}
{{ $lastbuilddate := and $page.PublishDate (not $page.PublishDate.IsZero) ($page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700") }}
{{ $lastbuilddate := (partial "paige/changed.html" $page).Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
{{ $language := site.LanguageCode | default site.Language.Lang }}
{{ $limit := site.Config.Services.RSS.Limit }}
{{ $link := $page.Permalink }}