mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 15:36:22 -04:00
also migrated SASS to latest syntax (via dart-sass) and vastly simplified light/dark theme logic
36 lines
1.4 KiB
HTML
36 lines
1.4 KiB
HTML
<script type="application/ld+json">
|
|
{
|
|
"@context": "http://schema.org",
|
|
"@type": "BlogPosting",
|
|
"url": {{ with .OutputFormats.Get "html" }}{{ print $.Site.Params.baseURL .Permalink }}{{ end }},
|
|
"mainEntityOfPage": {{ with .OutputFormats.Get "html" }}{{ print $.Site.Params.baseURL .Permalink }}{{ end }},
|
|
"name": {{ .Scratch.Get "plainTitle" }},
|
|
"headline": {{ .Scratch.Get "plainTitle" }},
|
|
"datePublished": {{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }},
|
|
"dateModified": {{ .PublishDate.Format "2006-01-02T15:04:05-07:00" }},
|
|
"keywords": {{ with .Params.tags }}{{ delimit . ", " }}{{ end }},
|
|
"description": {{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }},
|
|
"wordCount": "{{ .WordCount }}",
|
|
"author": {
|
|
"@id": {{ print .Site.Params.baseURL $.Site.BaseURL "#author" }}
|
|
},
|
|
"publisher": {
|
|
"@type": "Organization",
|
|
"name": {{ .Site.Title }},
|
|
"url": {{ .Site.Params.baseURL }}{{ with .Scratch.Get "logoImage" }},
|
|
"logo": {
|
|
"@type": "ImageObject",
|
|
"url": {{ print $.Site.Params.baseURL .Permalink }},
|
|
"width": "{{ .Width }}",
|
|
"height": "{{ .Height }}"
|
|
}{{ end }}
|
|
}{{ with .Scratch.Get "pageImage" }},
|
|
"image": {
|
|
"@type": "ImageObject",
|
|
"url": {{ print $.Site.Params.baseURL .Permalink }},
|
|
"width": "{{ .Width }}",
|
|
"height": "{{ .Height }}"
|
|
}{{ end }}
|
|
}
|
|
</script>
|