2022-12-25 17:14:27 +01:00
|
|
|
{{- $pageTitle := .Title | markdownify -}}
|
|
|
|
{{- $pageDescription := .Page.Params.description | default .Site.Params.description | markdownify -}}
|
|
|
|
{{- $socialImagePath := printf "/docs/%s/assets" .Site.Params.docs_version -}}
|
|
|
|
|
|
|
|
{{- if .Page.Params.thumbnail -}}
|
|
|
|
{{- $socialImagePath = path.Join $socialImagePath "img/" .Page.Params.thumbnail -}}
|
|
|
|
{{- else -}}
|
|
|
|
{{- $socialImagePath = path.Join $socialImagePath "brand/bootstrap-social.png" -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2022-07-26 18:25:47 +02:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
2019-01-08 17:33:28 +01:00
|
|
|
<meta name="twitter:site" content="@{{ .Site.Params.twitter }}">
|
|
|
|
<meta name="twitter:creator" content="@{{ .Site.Params.twitter }}">
|
2022-12-25 17:14:27 +01:00
|
|
|
<meta name="twitter:title" content="{{ $pageTitle }}">
|
|
|
|
<meta name="twitter:description" content="{{ $pageDescription }}">
|
|
|
|
<meta name="twitter:image" content="{{ $socialImagePath | absURL }}">
|
2019-01-08 17:33:28 +01:00
|
|
|
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}">
|
2022-12-25 17:14:27 +01:00
|
|
|
<meta property="og:title" content="{{ $pageTitle }}">
|
|
|
|
<meta property="og:description" content="{{ $pageDescription }}">
|
2020-09-29 18:28:03 +02:00
|
|
|
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}">
|
2022-12-25 17:14:27 +01:00
|
|
|
<meta property="og:image" content="{{ $socialImagePath | absURL }}">
|
2019-01-08 17:33:28 +01:00
|
|
|
<meta property="og:image:type" content="image/png">
|
2022-12-25 17:14:27 +01:00
|
|
|
{{ with (imageConfig (path.Join "site/static" $socialImagePath)) -}}
|
|
|
|
<meta property="og:image:width" content="{{ .Width }}">
|
|
|
|
<meta property="og:image:height" content="{{ .Height }}">
|
|
|
|
{{- end }}
|