2021-11-20 19:05:56 -06:00
|
|
|
<meta itemprop="name" content="{{ .Title | plainify }}">
|
2021-11-22 15:13:41 -06:00
|
|
|
<meta itemprop="description" content="{{ (partial "seo-tags/description.html" .) | plainify }}">
|
2021-11-20 18:24:56 -06:00
|
|
|
|
|
|
|
{{ $format := "2006-01-02T15:04:05-07:00" }}
|
|
|
|
{{ with .Date }}
|
|
|
|
<meta itemprop="datePublished" content="{{ .Format $format }}">
|
|
|
|
{{ end }}
|
|
|
|
{{ with .Lastmod }}
|
|
|
|
<meta itemprop="dateModified" content="{{ .Format $format }}">
|
|
|
|
{{ end }}
|
2021-11-13 19:37:50 -06:00
|
|
|
|
|
|
|
<meta itemprop="wordCount" content="{{ .WordCount }}">
|
|
|
|
|
2021-11-20 18:24:56 -06:00
|
|
|
{{ $images := $.Resources.ByType "image" }}
|
|
|
|
{{ $featured := $images.GetMatch "*feature*" }}
|
|
|
|
{{ if not $featured }}
|
|
|
|
{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with $featured }}
|
|
|
|
<meta itemprop="image" content="{{ $featured.Permalink }}">
|
|
|
|
{{ end }}
|
2021-11-13 19:37:50 -06:00
|
|
|
|
2022-05-18 15:01:06 -05:00
|
|
|
{{ with (.GetTerms "tags") }}
|
|
|
|
{{ $tags := slice }}
|
|
|
|
{{ range . }}
|
|
|
|
{{ $tags = $tags | append .LinkTitle }}
|
|
|
|
{{ end }}
|
|
|
|
<meta itemprop="keywords" content="{{ delimit $tags ", " }}">
|
2021-11-20 18:24:56 -06:00
|
|
|
{{ end }}
|