Skip to content

Commit

Permalink
Fix remaining structured data validation errors
Browse files Browse the repository at this point in the history
Fixes #185
  • Loading branch information
philwareham committed Apr 30, 2019
1 parent 4ef2694 commit a7b8467
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/templates/pages/blog.txp
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,24 @@
"headline": "<txp:title escape="json" />",
"description": "<txp:meta_description format="" escape="json" />",
"url": "<txp:permlink escape="json" />",
"mainEntityOfPage": "<txp:permlink escape="json" />",
"datePublished": "<txp:posted format="iso8601" />",
"dateModified": "<txp:modified format="iso8601" />",
"author": {
"@type": "Person",
"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>"
},
"datePublished": "<txp:posted format="iso8601" />",
"dateModified": "<txp:modified format="iso8601" />",
"publisher": {
"@type": "Organization",
"name": "Textpattern CMS",
"logo": {
"@type": "ImageObject",
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png"
}
},
"image": {
"@type": "ImageObject",
"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>"
}
}]
}
Expand Down

0 comments on commit a7b8467

Please sign in to comment.