www.duckland.org/themes/nederburg/layouts/partials/schema.html
2019-05-26 18:26:26 -05:00

27 lines
1.2 KiB
HTML

<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "BlogPosting",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Site.BaseURL }}"
},
"articleSection" : "{{ .Section }}",
"name" : "{{ .Title }}",
"headline" : "{{ .Title }}",
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
"inLanguage" : "en",
"author" : "{{ .Page.Params.author }}",
"creator" : "{{ .Page.Params.author }}",
"publisher": "{{ .Page.Params.author }}",
"accountablePerson" : "{{ .Page.Params.author }}",
"copyrightHolder" : "{{ .Page.Params.author }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"datePublished": "{{ .Date }}",
"dateModified" : "{{ .Date }}",
"url" : "{{ .Permalink }}",
"wordCount" : "{{ .WordCount }}",
"image" : {{ printf "%s%s" .Site.BaseURL .Page.Params.image }}",
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"Blog" ]
}
</script>