Update date format

This commit is contained in:
panr 2018-07-30 19:03:01 +02:00
parent eba407aa32
commit 9b99d7db73
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<h1 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<div class="post-meta">
<span class="post-date">
{{ .Date.Year }}-{{ sub .Date.Month 0 }}-{{ .Date.Day }}
{{ .Date.Format "2006-01-02" }}
</span>
<span class="post-author">Written by {{ .Params.Author }}</span>
</div>

View File

@ -3,7 +3,7 @@
<h2 class="post-title"><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h2>
<div class="post-meta">
<span class="post-date">
{{ .Date.Year }}-{{ sub .Date.Month 0 }}-{{ .Date.Day }}
{{ .Date.Format "2006-01-02" }}
</span>
<span class="post-author">Written by {{ .Params.Author }}</span>
</div>