Browse Source

fix(layouts/index): Use <time> and <article>

Sorin Davidoi 6 years ago
parent
commit
36d41b09cf
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      layouts/index.html

+ 4
- 4
layouts/index.html View File

1
 {{ define "main" -}}
1
 {{ define "main" -}}
2
 <div class="posts">
2
 <div class="posts">
3
 {{ range .Data.Pages -}}
3
 {{ range .Data.Pages -}}
4
-<div class="post">
4
+<article class="post">
5
   <h1 class="post-title">
5
   <h1 class="post-title">
6
     <a href="{{ .Permalink }}">{{ .Title }}</a>
6
     <a href="{{ .Permalink }}">{{ .Title }}</a>
7
   </h1>
7
   </h1>
8
-  <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
8
+  <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
9
   {{ .Summary }}
9
   {{ .Summary }}
10
   {{ if .Truncated }}
10
   {{ if .Truncated }}
11
   <div class="read-more-link">
11
   <div class="read-more-link">
12
     <a href="{{ .RelPermalink }}">Read More…</a>
12
     <a href="{{ .RelPermalink }}">Read More…</a>
13
   </div>
13
   </div>
14
   {{ end }}
14
   {{ end }}
15
-</div>
15
+</article>
16
 {{- end }}
16
 {{- end }}
17
 </div>
17
 </div>
18
-{{- end }}
18
+{{- end }}