Skip to content

Instantly share code, notes, and snippets.

@hugodias
Forked from lukebussey/hubspot_schema.html
Created January 31, 2019 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugodias/d0a17fc94d63e8e4dacf9bb4a35f2f89 to your computer and use it in GitHub Desktop.
Save hugodias/d0a17fc94d63e8e4dacf9bb4a35f2f89 to your computer and use it in GitHub Desktop.
HubSpot Blog Schema.org Markup
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"@id": "#organization",
"name": "Outlyer",
"url": "https://www.outlyer.com/",
"sameAs": [
"https://github.com/outlyerapp",
"https://twitter.com/outlyer",
"https://www.facebook.com/outlyerapp",
"https://plus.google.com/+outlyer",
"https://www.youtube.com/outlyer",
"https://www.linkedin.com/company/outlyer",
"https://www.wikidata.org/wiki/Q29790564"
]
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Blog",
"@id": "#blog",
"name": "Outlyer",
"description": "{{ group.description }}",
"url": "{{ group.absolute_url }}",
"publisher": {
"@type": "Organization",
"name": "Outlyer"
}
}
</script>
{% if not is_listing_view %}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "{{ page_meta.name }}",
"description": "{{ content.meta_description }}",
"url": "{{ page_meta.canonical_url }}",
"datePublished": "{{ content.publish_date|datetimeformat('%Y-%m-%d') }}",
"dateUpdated": "{{ content.updated|datetimeformat('%Y-%m-%d') }}",
{% if content.featured_image %}
"image": "{{ content.featured_image }}",
{{% endif %}}
"publisher": {
"@type": "Organization",
"name": "Outlyer"
},
{% if content.blog_post_author %}
"author": {
"@type": "Person",
"name": "{{ content.blog_post_author.display_name }}",
"url": "{{ group.absolute_url }}/author/{{ content.blog_post_author.slug }}"
}
{% endif %}
}
</script>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment