Fix theme
This commit is contained in:
parent
bc2c29152e
commit
b4a60a014d
1 changed files with 11 additions and 0 deletions
|
@ -38,3 +38,14 @@
|
||||||
|
|
||||||
{{ $card := $bg.Filter (images.Overlay $fg 112 140 ) }}
|
{{ $card := $bg.Filter (images.Overlay $fg 112 140 ) }}
|
||||||
{{ $card := $card.Resize "900x webp q100" }}
|
{{ $card := $card.Resize "900x webp q100" }}
|
||||||
|
|
||||||
|
<meta itemprop="name" content="{{ .Title }}">
|
||||||
|
<meta itemprop="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
|
{{- if .IsPage -}}
|
||||||
|
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
|
||||||
|
{{ with .PublishDate }}<meta itemprop="datePublished" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end}}
|
||||||
|
{{ with .Lastmod }}<meta itemprop="dateModified" {{ .Format $iso8601 | printf "content=%q" | safeHTMLAttr }} />{{ end}}
|
||||||
|
<meta itemprop="wordCount" content="{{ .WordCount }}">
|
||||||
|
<meta itemprop="image" content="{{ $card.Permalink | absURL }}"/>
|
||||||
|
<meta itemprop="keywords" content="{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}" />
|
||||||
|
{{- end -}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue