update date format

This commit is contained in:
Hesam Panahi 2021-06-28 21:49:58 -05:00
parent 95d3e9470d
commit b02432a672
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
</h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
{{ .Date.Format "Jan 2, 2006" }} | reading time: {{ .ReadingTime }} minutes
</span>
{{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span>

View File

@ -5,7 +5,7 @@
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date">
{{ .Date.Format "Mar 4 2006" "2006-03-04"}} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }} | reading time: {{ .ReadingTime }} minutes
{{ .Date.Format "Jan 2, 2006" }} {{ if $.Site.Params.showLastUpdated }}[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]{{ end }} | reading time: {{ .ReadingTime }} minutes
</span>
{{ end }}
{{ with .Params.Author }}