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]
|
[paige]
|
||||||
color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windows
|
color = "#0d6efd" # Bootstrap primary color and theme color for Safari and Windows
|
||||||
color_scheme = "auto" # Must be "auto", "dark", or "light"
|
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
|
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"
|
file_edit_url = "" # Example is "https://github.com/willfaught/paige/edit/master/content/%s"
|
||||||
keyword_style = "text" # Must be "text" or "pills"
|
keyword_style = "text" # Must be "text" or "pills"
|
||||||
@@ -263,9 +264,6 @@ account_id = ""
|
|||||||
[paige.comments.utterances] # See https://utteranc.es
|
[paige.comments.utterances] # See https://utteranc.es
|
||||||
github_repo = ""
|
github_repo = ""
|
||||||
|
|
||||||
[paige.date]
|
|
||||||
format = ":date_long" # Hugo date format
|
|
||||||
|
|
||||||
[paige.feed]
|
[paige.feed]
|
||||||
hide_page = false
|
hide_page = false
|
||||||
link_to_page = false # Link to the page instead of the front matter link, if present
|
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 }}
|
{{ $authors := partial "paige/authors.html" $page }}
|
||||||
{{ $categories := $page.GetTerms "categories" }}
|
{{ $categories := $page.GetTerms "categories" }}
|
||||||
{{ $date := $page.PublishDate }}
|
{{ $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 }}
|
{{ $description := $page.Description | markdownify }}
|
||||||
{{ $link := $page.Params.link }}
|
{{ $link := $page.Params.link }}
|
||||||
{{ $readingtime := $page.ReadingTime }}
|
{{ $readingtime := $page.ReadingTime }}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
{{ $authors := partial "paige/authors.html" $page }}
|
{{ $authors := partial "paige/authors.html" $page }}
|
||||||
{{ $categories := $page.GetTerms "categories" }}
|
{{ $categories := $page.GetTerms "categories" }}
|
||||||
{{ $date := $page.PublishDate }}
|
{{ $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 }}
|
{{ $description := $page.Description | markdownify | plainify | htmlUnescape }}
|
||||||
{{ $draft := $page.Draft }}
|
{{ $draft := $page.Draft }}
|
||||||
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
||||||
|
Reference in New Issue
Block a user