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
No known key found for this signature in database
GPG Key ID: 1E892DB2A5F84479
3 changed files with 6 additions and 6 deletions

View File

@ -20,9 +20,9 @@
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1> </h1>
<div class="post-meta"> <div class="post-meta">
<span class="post-date"> <time class="post-date">
{{ .Date.Format "2006-01-02" }} {{ .Date.Format "2006-01-02" }}
</span> </time>
{{ with .Params.Author }} {{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span> <span class="post-author">:: {{ . }}</span>
{{ end }} {{ end }}

View File

@ -11,9 +11,9 @@
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h1> </h1>
<div class="post-meta"> <div class="post-meta">
<span class="post-date"> <time class="post-date">
{{ .Date.Format "2006-01-02" }} {{ .Date.Format "2006-01-02" }}
</span> </time>
{{ with .Params.Author }} {{ with .Params.Author }}
<span class="post-author">:: {{ . }}</span> <span class="post-author">:: {{ . }}</span>
{{ end }} {{ end }}

View File

@ -5,9 +5,9 @@
<div class="post-meta"> <div class="post-meta">
{{ if .Params.Date }} {{ if .Params.Date }}
<span class="post-date"> <span class="post-date">
{{ .Date.Format "2006-01-02" }} <time>{{ .Date.Format "2006-01-02" }}</time>
{{ if $.Site.Params.showLastUpdated }} {{ 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 }} {{ end }}
</span> </span>
{{ end }} {{ end }}