diff options
author | Sorin Davidoi | 2018-08-29 19:22:23 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen | 2018-08-29 19:37:35 +0200 |
commit | 36d41b09cff48eaedda4f497fec5d49ea230ac32 (patch) | |
tree | 5321ea6f0b5330d9b9df43ee7d3a7164a3f0f56a /layouts/index.html | |
parent | 482d8e601619cb4f7f9be25976a1a940160d503e (diff) | |
download | hyde-36d41b09cff48eaedda4f497fec5d49ea230ac32.tar.lz hyde-36d41b09cff48eaedda4f497fec5d49ea230ac32.tar.zst hyde-36d41b09cff48eaedda4f497fec5d49ea230ac32.zip |
fix(layouts/index): Use <time> and <article>
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html index 209009e..6b273ff 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,18 @@ {{ define "main" -}} <div class="posts"> {{ range .Data.Pages -}} -<div class="post"> +<article class="post"> <h1 class="post-title"> <a href="{{ .Permalink }}">{{ .Title }}</a> </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 }} {{ if .Truncated }} <div class="read-more-link"> <a href="{{ .RelPermalink }}">Read More…</a> </div> {{ end }} -</div> +</article> {{- end }} </div> -{{- end }} \ No newline at end of file +{{- end }} |