Skip to content

Instantly share code, notes, and snippets.

@zillingen
Created February 11, 2018 14:33
Show Gist options
  • Select an option

  • Save zillingen/9a4b4360010e98f80e6f101a4206f8bb to your computer and use it in GitHub Desktop.

Select an option

Save zillingen/9a4b4360010e98f80e6f101a4206f8bb to your computer and use it in GitHub Desktop.
JSON-LD Article markup for Bolt CMS
{# 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