mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-24 22:10:39 +00:00
Robert Kaussow
eba3d78a32
BREAKING CHANGE: The min required Hugo version was bumped to v0.124 to drop deprecated vars `.Site.Social`.
16 lines
611 B
HTML
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.Params.twitter -}}
|
|
<meta name="twitter:site" content="@{{ . }}" />
|
|
{{- end }}
|