mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Add a way to change the date format with 'dateFormat' site param
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
<div class="post-meta">
|
||||
{{- if or .Params.author .Site.Params.author -}}
|
||||
{{ .Params.author | default .Site.Params.author }} · {{ end }}
|
||||
{{- .Date.Format "2006.1.2" -}}
|
||||
{{- .Date.Format (.Site.Params.dateFormat | default "2006.1.2") -}}
|
||||
</div>
|
||||
</header>
|
||||
<div class="post-content">{{ .Content }}</div>
|
||||
|
Reference in New Issue
Block a user