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 a53c1525c3
commit 13f4ea3c02
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
<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>
{{- end }}
{{- end }}