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