doc/themes/hugo-geekdoc/layouts/partials/microformats/twitter_cards.html
Felix Niederwanger 2a9c145b75
Update hugo-geekdoc theme to v0.32.4
Update the used version of hugo-geekdoc to 0.32.4
2022-06-29 10:13:52 +02:00

16 lines
611 B
HTML

{{- with partial "utils/featured" . }}
<meta name="twitter:card" content="summary_large_image" />
{{- else }}
<meta name="twitter:card" content="summary" />
{{- end }}
<meta name="twitter:title" {{ partial "utils/title" . | printf "content=%q" | safeHTMLAttr }} />
{{- with partial "utils/featured" . }}
<meta property="twitter:image" content="{{ . }}" />
{{- end }}
{{- with partial "utils/description" . }}
<meta name="twitter:description" content="{{ . | plainify | htmlUnescape | chomp }}" />
{{- end }}
{{- with .Site.Social.twitter -}}
<meta name="twitter:site" content="@{{ . }}" />
{{- end }}