fix(layouts/list): Add datetime attribute to <time>

This commit is contained in:
Sorin Davidoi 2018-08-29 19:25:01 +02:00 committed by Bjørn Erik Pedersen
parent 9bb31d6aed
commit 482d8e6016
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<ul class="posts">
{{ range .Data.Pages -}}
<li>
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
<span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list" datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
</li>
{{- end }}
</ul>