Skip to content

Commit a7b8467

Browse files
committed
Fix remaining structured data validation errors
Fixes #185
1 parent 4ef2694 commit a7b8467

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/templates/pages/blog.txp

+7-2
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,24 @@
8888
"headline": "<txp:title escape="json" />",
8989
"description": "<txp:meta_description format="" escape="json" />",
9090
"url": "<txp:permlink escape="json" />",
91+
"mainEntityOfPage": "<txp:permlink escape="json" />",
92+
"datePublished": "<txp:posted format="iso8601" />",
93+
"dateModified": "<txp:modified format="iso8601" />",
9194
"author": {
9295
"@type": "Person",
9396
"name": "<txp:if_custom_field name="external-author"><txp:custom_field name="external-author" escape="json" /><txp:else /><txp:author escape="json" /></txp:if_custom_field>"
9497
},
95-
"datePublished": "<txp:posted format="iso8601" />",
96-
"dateModified": "<txp:modified format="iso8601" />",
9798
"publisher": {
9899
"@type": "Organization",
99100
"name": "Textpattern CMS",
100101
"logo": {
101102
"@type": "ImageObject",
102103
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png"
103104
}
105+
},
106+
"image": {
107+
"@type": "ImageObject",
108+
"url": "<txp:if_article_image><txp:images limit="1"><txp:image_url escape="json" /></txp:images><txp:else />https://textpattern.com/assets/img/branding/textpattern/textpattern-og.png</txp:if_article_image>"
104109
}
105110
}]
106111
}

0 commit comments

Comments
 (0)