Only mark content in section blog and post as BlogPosting, others as WebPage.
This commit is contained in:
parent
03e4c9ca40
commit
387541edbb
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "https://schema.org",
|
"@context": "https://schema.org",
|
||||||
"@type": "BlogPosting",
|
"@type": {{ if or (eq .Section "blog") (eq .Section "post") }}"BlogPosting"{{ else }}"WebPage"{{ end }},
|
||||||
"headline": {{ .Title }},
|
"headline": {{ .Title }},
|
||||||
"datePublished": {{ .Date.Format "2006-01-02T15:04:05Z07:00" }},
|
"datePublished": {{ .Date.Format "2006-01-02T15:04:05Z07:00" }},
|
||||||
"dateModified": {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }},
|
"dateModified": {{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue