docs: adjust open graph (#3709)
parent
84a2bcecce
commit
20b3b6873f
|
@ -1,6 +1,10 @@
|
||||||
<meta property="og:locale" content="{{ .Site.Params.ogLocale }}">
|
<meta property="og:locale" content="{{ .Site.Params.ogLocale }}">
|
||||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
||||||
<meta property="og:title" content="{{ .Title }}">
|
{{ if .IsHome -}}
|
||||||
|
<meta property="og:title" content="{{ .Site.Params.title }} {{ .Site.Params.titleSeparator }} {{ .Site.Params.titleAddition }}">
|
||||||
|
{{ else -}}
|
||||||
|
<meta property="og:title" content="{{ .Title }} {{ .Site.Params.titleSeparator }} {{ humanize .Section }}">
|
||||||
|
{{ end -}}
|
||||||
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
<meta property="og:description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
|
||||||
{{ if $.Scratch.Get "paginator" -}}
|
{{ if $.Scratch.Get "paginator" -}}
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "blog" ) -}}
|
{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "blog" ) -}}
|
||||||
|
|
Loading…
Reference in New Issue