{{ "<!-- author -->" | safeHTML }}
<meta name="author" property="article:author" content="{{ . }}" />
<meta property="article:publisher" content="{{ .Site.BaseURL }}" />
{{- if or .Date .Lastmod }}
{{ "<!-- time -->" | safeHTML }}
{{- end }}
{{ with .Date -}}
<meta property="article:published_time" itemprop="datePublished" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} /> 
{{ end -}}
{{ with .Lastmod -}}
<meta property="article:modified_time" itemprop="dateModified" content={{ .Format "2006-01-02T03:04:05Z" | safeHTML }} />
{{ end -}}

{{/*=== section and keywords ===*/}}
{{- with.Params.category -}}
{{- "<!-- keywords -->" | safeHTML -}}
<meta property="article:section" content="{{ . }}" />
{{- end -}}
{{- with .Params.tags -}}
<meta property="article:tag" itemprop="keywords" name="keywords" content='{{ delimit . ", "}}' />
{{- end -}}

{{- "<!-- article metadata -->" | safeHTML }}
<meta property="og:type" content="article" />
<meta itemprop="wordCount" content="{{ .WordCount }}" />
<script defer type="application/ld+json">
{
	"@context": "http://schema.org",
	"@type": "Article",
	"headline": {{ .Title }},
	"author": {
		"@type": "Person",
		"name": "TODO: fixme",
		"url": "TODO: fixme"
	},
	"datePublished": {{ .Date.UTC.Format "2006-01-02T03:04:05Z" }},
	"description": {{ (or .Description .Summary) | plainify }},
	"wordCount": {{ .WordCount }},
	"mainEntityOfPage": {{ .Permalink }},
	"dateModified": "{{ .Lastmod.UTC.Format "2006-01-02T03:04:05Z" }}",
	"image": {
		"@type": "ImageObject",
		"url": "TODO: fixme"
	},
	"publisher": {
		"@type": "WebSite",
		"name": {{ .Site.Title }},
		"url": {{ .Site.BaseURL }},
		"image": {
			"@type": "ImageObject",
			"url": "TODO: fixme"
		}
	}
}
</script>