Semantics: use time element where appropriate

See #371
This commit is contained in:
Rohan Kumar
2022-09-27 14:06:37 -07:00
parent a44ecc8816
commit 4a26bc11a8
3 changed files with 6 additions and 6 deletions

View File

@ -5,9 +5,9 @@
<div class="post-meta">
{{ if .Params.Date }}
<span class="post-date">
{{ .Date.Format "2006-01-02" }}
<time>{{ .Date.Format "2006-01-02" }}</time>
{{ if $.Site.Params.showLastUpdated }}
[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]
[{{or $.Site.Params.updatedDatePrefix "Updated"}}: <time>{{ .Lastmod.Format "2006-01-02" }}</time>]
{{ end }}
</span>
{{ end }}