Browse Source

fix(layouts/single): Use <time>

Sorin Davidoi 6 years ago
parent
commit
932d5322bf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      layouts/_default/single.html

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

1
 {{ define "main" -}}
1
 {{ define "main" -}}
2
 <div class="post">
2
 <div class="post">
3
   <h1>{{ .Title }}</h1>
3
   <h1>{{ .Title }}</h1>
4
-  <span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
4
+  <time datetime={{ .Date.Format "2006-01-02T15:04:05Z0700" }} class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
5
   {{ .Content }}
5
   {{ .Content }}
6
 </div>
6
 </div>
7
 
7
 
9
 <h2>Comments</h2>
9
 <h2>Comments</h2>
10
 {{ template "_internal/disqus.html" . }}
10
 {{ template "_internal/disqus.html" . }}
11
 {{- end }}
11
 {{- end }}
12
-{{- end }}
12
+{{- end }}