Add page.date.format config
This commit is contained in:
@@ -283,6 +283,7 @@ paige:
|
||||
show: false # Default is false
|
||||
date:
|
||||
class: "text-center text-secondary" # Default is "text-center text-secondary"
|
||||
format: ":date_long" # Default is ":date_long"
|
||||
show: false # Default is false
|
||||
description:
|
||||
class: "text-center" # Default is "text-center"
|
||||
|
@@ -7,8 +7,8 @@
|
||||
{{ with $authors }}
|
||||
<p class="{{ if $date }} {{ $gap }} {{ end }} {{ $authorsclass }}">{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with $date }}
|
||||
{{ if $date }}
|
||||
<p class="{{ $dateclass }}">
|
||||
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.page.date.format | default ":date_long") . }}</time>
|
||||
<time datetime="{{ $date.Format `2006-01-02` }}">{{ time.Format (.Param "paige.page.date.format" | default ":date_long") $date }}</time>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
@@ -64,9 +64,9 @@
|
||||
{{ with $authors }}
|
||||
<p class="{{ if or $date $summary }} {{ $gap }} {{ end }} {{ $authorsclass }}">{{ . }}</p>
|
||||
{{ end }}
|
||||
{{ with $date }}
|
||||
{{ if $date }}
|
||||
<p class="{{ if $summary }} {{ $gap }} {{ end }} {{ $dateclass }}">
|
||||
<time datetime="{{ .Format `2006-01-02` }}">{{ time.Format (site.Params.paige.page_list.date.format | default ":date_long") . }}</time>
|
||||
<time datetime="{{ $date.Format `2006-01-02` }}">{{ time.Format (.Param "paige.page_list.date.format" | default ":date_long") $date }}</time>
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ if $summary }}
|
||||
|
Reference in New Issue
Block a user