Only mark content in section blog and post as BlogPosting, others as WebPage.

This commit is contained in:
Fredrik Jonsson 2019-06-08 18:37:04 +02:00
commit 387541edbb

View file

@ -1,7 +1,7 @@
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"@type": {{ if or (eq .Section "blog") (eq .Section "post") }}"BlogPosting"{{ else }}"WebPage"{{ end }},
"headline": {{ .Title }},
"datePublished": {{ .Date.Format "2006-01-02T15:04:05Z07:00" }},
"dateModified": {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }},