www.duckland.org/themes/minimage/layouts/partials/json-single.html
2023-02-07 22:52:35 -06:00

37 lines
1.3 KiB
HTML

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"mainEntityOfPage": {
"@type": "NewsArticle",
"@id": "{{ .Permalink }}",
"headline": "{{ substr (replace (.Content) "\n" "") 0 110 }}",
"author": "{{ .Site.Params.author }}",
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Params.author }}",
"logo": "{{ .Site.BaseURL }}{{ .Site.Params.logo }}"
},
"image": "{{ .Site.BaseURL }}{{ .Params.image }}",
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}"
},
"headline": "{{ substr (replace (.Content) "\n" "") 0 110 }}",
"alternativeHeadline": "{{ .Site.Title }}",
"datePublished": "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}",
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}",
"url": "{{ .Permalink }}",
"wordCount": "{{ .WordCount }}",
"author": {
"@type": "Person",
"name": "{{ .Site.Params.author }}"
},
"publisher": {
"@type": "Organization",
"name": "{{ .Site.Params.author }}"
},
"image": "",
{{if .Params.categories }}"genre": "{{ range .Params.categories }}{{ . }}{{ end }}",{{ end }}
{{if .Params.tags }}"keywords": "{{ range .Params.tags }}{{ . }}{{ end }}",{{ end }}
"description": "{{ .Description }}"
}
</script>