Added <time> </time> HTML element to the date heading in blog post articles.
The opening <time> tag also was given a datetime attribute, with the value using another Hugo shortcode. Since these use Go time patterns; we included the following in the opening <time> tag datetime="{{ .Date.Format "2006-01-02" }}".
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
<h4 class="date-header">{{ .Date.Format site.Params.time_format_blog }}</h4>
|
||||
<h4 class="date-header"><time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format site.Params.time_format_blog }}</time></h4>
|
||||
<h3 class="post-title entry-title"><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
|
||||
{{ .Content }}
|
||||
|
||||
Reference in New Issue
Block a user