fix(layouts/index): Use <time> and <article>
This commit is contained in:
parent
482d8e6016
commit
36d41b09cf
|
@ -1,18 +1,18 @@
|
||||||
{{ define "main" -}}
|
{{ define "main" -}}
|
||||||
<div class="posts">
|
<div class="posts">
|
||||||
{{ range .Data.Pages -}}
|
{{ range .Data.Pages -}}
|
||||||
<div class="post">
|
<article class="post">
|
||||||
<h1 class="post-title">
|
<h1 class="post-title">
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
</h1>
|
</h1>
|
||||||
<span class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</span>
|
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z0700" }}" class="post-date">{{ .Date.Format "Mon, Jan 2, 2006" }}</time>
|
||||||
{{ .Summary }}
|
{{ .Summary }}
|
||||||
{{ if .Truncated }}
|
{{ if .Truncated }}
|
||||||
<div class="read-more-link">
|
<div class="read-more-link">
|
||||||
<a href="{{ .RelPermalink }}">Read More…</a>
|
<a href="{{ .RelPermalink }}">Read More…</a>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</article>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in New Issue