Added date metadata to blog articles #19503 (#19523)

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:
divya-mohan0209
2020-03-07 19:01:34 +05:30
committed by GitHub
parent aa44d74fc9
commit 56379649d3
+1 -1
View File
@@ -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 }}