Use time tag for date on posts.

This commit is contained in:
Fredrik Jonsson 2017-05-18 15:32:08 +02:00
commit 6d0f291fdd

View file

@ -1,4 +1,4 @@
<p class="submitted">
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
<span class="created-date">{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}</span>
<time class="modified-date" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ($.Param "dateformat" | default "2 January, 2006") }}</time>
</p>