Sfoglia il codice sorgente

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

Sorin Davidoi 6 anni fa
parent
commit
482d8e6016
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      layouts/_default/list.html

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

@@ -2,8 +2,8 @@
2 2
 <ul class="posts">
3 3
 {{ range .Data.Pages -}}
4 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 6
   </li>
7 7
 {{- end }}
8 8
 </ul>
9
-{{- end }}
9
+{{- end }}