Use .PublishDate instead of .Date
This commit is contained in:
@@ -6,13 +6,12 @@
|
||||
<section>
|
||||
{{ if $page.Params.image_url }}
|
||||
{{ $class := "mw-100 rounded-4 shadow" }}
|
||||
{{ $style := "height: 20rem" }}
|
||||
|
||||
{{ if $page.Params.image_stretch }}
|
||||
{{ $class = "rounded-4 shadow w-100" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $style := "height: 20rem" }}
|
||||
|
||||
{{ if $page.Params.image_stretch }}
|
||||
{{ $style = "height: 20rem; object-fit: cover" }}
|
||||
{{ end }}
|
||||
|
@@ -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 }}
|
||||
|
Reference in New Issue
Block a user