Created
February 11, 2018 14:33
-
-
Save zillingen/9a4b4360010e98f80e6f101a4206f8bb to your computer and use it in GitHub Desktop.
JSON-LD Article markup for Bolt CMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {# JSON-LD Article markup #} | |
| <script type="application/ld+json"> | |
| { | |
| "@context": "http://schema.org", | |
| "@type": "Article", | |
| "headline": "{{ article.title }}", | |
| "description": "{{ article.teaser|default('') }}", | |
| "mainEntityOfPage": "{{ absolute_url(article.link()) }}", | |
| "author": "{{ article.user.displayname }}", | |
| "datePublished": "{{ article.datepublish }}", | |
| "dateModified": "{{ article.datechanged }}", | |
| "image": [ | |
| "{{ absolute_url(thumbnail(article.image, 300, 300)) }}", | |
| "{{ absolute_url(thumbnail(article.image, 400, 300)) }}", | |
| "{{ absolute_url(thumbnail(article.image, 800, 600)) }}" | |
| ], | |
| "publisher": { | |
| "@type": "Organization", | |
| "name": "{{ config.get('general/sitename') }}", | |
| "logo": { | |
| "@type": "ImageObject", | |
| "url": "", | |
| "height": "", | |
| "width": "" | |
| } | |
| } | |
| }</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment