Move date.format config to date_format

This commit is contained in:
Will Faught
2024-06-03 20:04:00 -07:00
parent 94648a775e
commit 9e9e419cc5
3 changed files with 3 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
{{ $authors := partial "paige/authors.html" $page }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := $page.PublishDate }}
{{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }}
{{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }}
{{ $description := $page.Description | markdownify }}
{{ $link := $page.Params.link }}
{{ $readingtime := $page.ReadingTime }}

View File

@@ -3,7 +3,7 @@
{{ $authors := partial "paige/authors.html" $page }}
{{ $categories := $page.GetTerms "categories" }}
{{ $date := $page.PublishDate }}
{{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }}
{{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }}
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
{{ $draft := $page.Draft }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}