Skip to content

Commit

Permalink
Add some additonal JSON-LD to blog article
Browse files Browse the repository at this point in the history
See #185
  • Loading branch information
philwareham committed Nov 27, 2018
1 parent 3dc768d commit bbd7924
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/mockups/blog-article.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@
"name": "Textpattern CMS",
"logo": {
"@type": "ImageObject",
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png",
"width": "320",
"height": "60"
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png"
}
},
"interactionStatistic": {
Expand Down
14 changes: 13 additions & 1 deletion src/templates/pages/blog.txp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,19 @@
"@type": "BlogPosting",
"headline": "<txp:title escape="json" />",
"description": "<txp:meta_description format="" escape="json" />",
"url": "<txp:permlink escape="json" />"
"url": "<txp:permlink escape="json" />",
"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>"
},
"publisher": {
"@type": "Organization",
"name": "Textpattern CMS",
"logo": {
"@type": "ImageObject",
"url": "https://textpattern.com/assets/img/branding/textpattern/textpattern.png"
}
}
}]
}
</script>
Expand Down

0 comments on commit bbd7924

Please sign in to comment.