<script type=“application/ld+json”> {

"@context": "http://schema.org",
"@graph": [

{% unless page.not-organisation %} {

"@context" : "http://schema.org",
"@type" : "Organization",
"name" : "{{site.data.settings.schema.organisation.name}}",
"url" : "{{site.data.settings.schema.organisation.url}}",
"sameAs" : [
    {% if site.data.settings.twitter_username %}"https://twitter.com/{{site.data.settings.twitter_username}}",{% endif %}
    {% if site.data.settings.facebook_username %}"https://www.facebook.com/{{site.data.settings.facebook_username}}",{% endif %}
    {% if site.data.settings.linkedin_username %}"https://www.linkedin.com/company/{{site.data.settings.linkedin_username}}",{% endif %}
    {% if site.data.settings.google_plus_username %}"https://plus.google.com/{{site.data.settings.google_plus_username}}",{% endif %}
    {% if site.data.settings.github_username %}"https://github.com/{{site.data.settings.github_username}}",{% endif %}
    {% if site.data.settings.slideshare_username %}"https://www.slideshare.net/{{site.data.settings.slideshare_username}}"{% endif %}
  ],
  "address": {
      "@type": "PostalAddress",
      "streetAddress": "{{site.data.settings.schema.organisation.address.street}}",
      "addressLocality": "{{site.data.settings.schema.organisation.address.town}}",
      "addressRegion": "{{site.data.settings.schema.organisation.address.county}}",
      "postalCode": "{{site.data.settings.schema.organisation.address.post_code}}",
      "addressCountry": "{{site.data.settings.schema.organisation.address.country_code}}"
  }

} {% endunless %}

{% if page.is_post %} {% assign author = site.data.authors | where: “name”, page.author | first %} ,{

"@type": "BlogPosting",
"headline": "{{page.title}}",
"image": "{{site.url}}{{page.image.path}}",
"keywords": "{{page.keywords}}", 
"wordcount": "{{page.content | number_of_words }}",
"url": "{{page.url}}",
"datePublished": "{{page.date}}",
"description": "{% if page.description %}{{page.description}}{% else %}{{page.excerpt }}{% endif %}",
"articleBody": "{{page.content}}",
  "author": {
   "@type": "Person",
   "name": "{% if author.name %}{{author.name}}{% else %}{{page.author}}{% endif %}"
 }

} {% endif %} ]} </script>