posts: Improve microdata for date published and date modified (#570)

This commit is contained in:
Prateek Kumar authored and gcushen committed 2018-06-28 11:29:12 +01:00
1 parent ea98bc1f8c
commit bcd109acc5
1 file changed
+2 -1
+2 -1
View File
@@ -6,7 +6,8 @@
{{ if ne $.Params.Lastmod $.Params.Date }}
{{ i18n "last_updated" }}
{{ end }}
<time datetime="{{ $.Date }}" itemprop="datePublished dateModified">
<meta content="{{ $.Params.Date }}" itemprop="datePublished">
<time datetime="{{ $.Params.LastMod }}" itemprop="dateModified">
{{ $.Lastmod.Format $.Site.Params.date_format }}
</time>
</span>