mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
Add a way to change the date format with 'dateFormat' site param
This commit is contained in:
parent
4b46c8cd72
commit
cb6cdb37ef
@ -20,7 +20,7 @@
|
||||
<p>{{ .Summary | plainify | htmlUnescape }}...</p>
|
||||
</section>
|
||||
<footer class="entry-footer">
|
||||
<time >{{ .Date.Format "2006.1.2" }}</time>
|
||||
<time>{{ .Date.Format (.Site.Params.dateFormat | default "2006.1.2") }}</time>
|
||||
</footer>
|
||||
<a class="entry-link" href="{{ .Permalink }}"></a>
|
||||
</article>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user