Move date.format config to date_format
This commit is contained in:
@@ -175,6 +175,7 @@ There is a single parameter object with sensible defaults that can be overridden
|
||||
[paige]
|
||||
color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windows
|
||||
color_scheme = "auto" # Must be "auto", "dark", or "light"
|
||||
date_format = ":date_long" # Hugo date format
|
||||
external_link_new_tab = false # Open external links in new tabs
|
||||
file_edit_url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s"
|
||||
keyword_style = "text" # Must be "text" or "pills"
|
||||
@@ -263,9 +264,6 @@ account_id = ""
|
||||
[paige.comments.utterances] # See https://utteranc.es
|
||||
github_repo = ""
|
||||
|
||||
[paige.date]
|
||||
format = ":date_long" # Hugo date format
|
||||
|
||||
[paige.feed]
|
||||
hide_page = false
|
||||
link_to_page = false # Link to the page instead of the front matter link, if present
|
||||
|
@@ -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 }}
|
||||
|
@@ -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) }}
|
||||
|
Reference in New Issue
Block a user