Files
memex/gharbeia.net/themes/gohugo-amp/layouts/partials/seo/structured/article.html

37 lines
1.2 KiB
HTML

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Article",
"author": {
"name" : "{{ .Params.author.name }}"
},
"headline": "{{ .Title }}",
"description": "{{ .Params.description }}",
"wordCount": {{ .WordCount }},
"datePublished" : "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"dateModified" : "{{ .Date.Format "2006-01-02T15:04:05" }}",
"image" : {
"@context": "http://schema.org",
"@type": "ImageObject",
"author": "{{ .Params.image.author }}",
"url": "{{ .Params.image.src }}",
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05" }}",
"name": "{{ .Params.image.title }}",
"height" : {{ .Params.image.height }},
"width" : {{ .Params.image.width }},
"license" : "{{ .Params.image.license_link }}",
"isBasedOn" : "{{ .Params.image.link }}"
},
"mainEntityOfPage" : "{{ .Permalink }}",
"publisher" : {
"@type": "Organization",
"name" : "{{ $.Site.Params.publisherName }}",
"logo" : {
"@type" : "ImageObject",
"url" : "{{ $.Site.Params.publisherLogo }}",
"height" : {{ $.Site.Params.publisherLogoHeight }},
"width" : {{ $.Site.Params.publisherLogoWidth }}
}
}
}
</script>