{{- /* based on Hugo 0.125.5 twitter_cards.html */}} {{- $images := partial "_funcs/get-page-images" . }} {{- with index $images 0 }} {{- else }} {{- end }} {{- with partial "pageHelper/title.hugo" (dict "page" . "fullyQualified" true "reverse" true) | plainify }} {{- end }} {{- with or .Description .Summary | plainify | htmlUnescape | chomp }} {{- end }} {{- $twitterSite := "" }} {{- with site.Params.social }} {{- if reflect.IsMap . }} {{- with .twitter }} {{- $content := . }} {{- if not (strings.HasPrefix . "@") }} {{- $content = printf "@%v" . }} {{- end }} {{- end }} {{- end }} {{- end }}