2020-09-11 15:55:15 -04:00
|
|
|
{{- with .Site.Params.opengraph.twitter.site -}}
|
|
|
|
<meta name="twitter:site" content="{{ . }}">
|
|
|
|
{{- end -}}
|
|
|
|
|
2020-09-17 15:59:57 -04:00
|
|
|
{{- $title := partialCached "data/title" . .RelPermalink -}}
|
|
|
|
{{- $description := partialCached "data/description" . .RelPermalink -}}
|
2020-09-11 17:00:19 -04:00
|
|
|
|
|
|
|
<meta name="twitter:title" content="{{ $title }}">
|
|
|
|
<meta name="twitter:description" content="{{ $description }}">
|
2020-09-11 15:55:15 -04:00
|
|
|
|
2020-09-17 15:52:06 -04:00
|
|
|
{{- $image := partialCached "helper/image" (dict "Context" . "Type" "opengraph") .RelPermalink -}}
|
2020-09-11 15:55:15 -04:00
|
|
|
{{- if $image.exists -}}
|
|
|
|
<meta name="twitter:card" content="{{ .Site.Params.opengraph.twitter.card }}">
|
|
|
|
<meta name="twitter:image" content='{{ absURL $image.permalink }}' />
|
|
|
|
{{- end -}}
|