Use .PublishDate instead of .Date

This commit is contained in:
Will Faught
2023-01-29 11:59:55 -08:00
parent b9f319f4c5
commit ffe4b5fd2e
2 changed files with 4 additions and 5 deletions

View File

@@ -36,8 +36,8 @@
{{ with $page.Site.LanguageCode | default .Site.Language.Lang }}
<language>{{ . }}</language>
{{ end }}
{{ if and $page.Date (not $page.Date.IsZero) }}
<lastBuildDate>{{ $page.Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
{{ if and $page.PublishDate (not $page.PublishDate.IsZero) }}
<lastBuildDate>{{ $page.PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
{{ end }}
<link>{{ $page.Permalink }}</link>
{{ with $page.Site.Params.paige.rss.managing_editor }}
@@ -63,7 +63,7 @@
<guid>{{ . }}</guid>
<link>{{ . }}</link>
{{ end }}
{{ with .Date }}
{{ with .PublishDate }}
<pubDate>{{ .Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ end }}
{{ with .Title }}