hackertours-theme/layouts/partials/single_json_ld.html
Fredrik Jonsson b7977e1c28 First commit.
2017-03-09 14:29:29 +01:00

34 lines
969 B
HTML

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "WebPage",
"@id":"{{ .Site.BaseURL }}"
},
"headline": "{{ .Title }} - {{ .Site.Title }}",
"image": {
"@type": "ImageObject",
"url": "{{ .Site.BaseURL }}{{ .Params.thumbnail | default "images/default.png" }}",
"height": 800,
"width": 800
},
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05UTC" }}",
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05UTC" }}",
"author": {
"@type": "Person",
"name": "{{ .Site.Title }}"
},
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Title }}",
"logo": {
"@type": "ImageObject",
"url": "{{ .Site.BaseURL }}images/logo.png",
"width": 600,
"height": 60
}
},
"description": "{{ .Description | default .Summary }}"
}
</script>