<script type="application/ld+json">
  [
  {{- if eq .Section "post" }}
    {
      "@context": "https://schema.org",
      "@type": "BlogPosting",
      "headline": {{ .Title }},
      "image": {{ index .Params.images 0 | absURL }},
      "datePublished": {{ .PublishDate }},
      "dateModified": {{ .Lastmod }},
      "wordCount": {{ .WordCount }},
      "author": {
        "@type": "Person",
        "name": {{ .Site.Params.author }}
      },
      "mainEntityOfPage": { "@type": "WebPage" },
      "publisher": {
        "@type": "Organization",
        "name": {{ .Site.Params.header }},
        "logo": {
        "@type": "ImageObject",
        "url": {{ .Site.Params.logo | absURL }}
      }
    },
    "description": {{ .Summary | plainify | safeHTML }},
    "keywords": [{{ range $i, $e := .Params.tags }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}]
    },
  {{- end }}
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": {{ .Site.Params.header }},
      "url": {{ .Site.BaseURL }},
      "sameAs": [
        "https://twitter.com/{{ .Site.Params.twitter }}",
        "https://github.com/{{ .Site.Params.github }}"
      ]
    }
  ]
    </script>
