Browse Source

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

Sorin Davidoi 6 years ago
parent
commit
482d8e6016
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      layouts/_default/list.html

+ 2
- 2
layouts/_default/list.html View File

2
 <ul class="posts">
2
 <ul class="posts">
3
 {{ range .Data.Pages -}}
3
 {{ range .Data.Pages -}}
4
   <li>
4
   <li>
5
-    <span><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="pull-right post-list">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>
5
+    <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>
6
   </li>
6
   </li>
7
 {{- end }}
7
 {{- end }}
8
 </ul>
8
 </ul>
9
-{{- end }}
9
+{{- end }}