{{- /* based on Hugo 0.125.3 twitter_cards.html */}} {{- $images := partial "_funcs/get-page-images" . }} {{- with index $images 0 }} {{- else }} {{- end }} {{- $twitterSite := "" }} {{- with site.Params.social }} {{- if reflect.IsMap . }} {{- with .twitter }} {{- $content := . }} {{- if not (strings.HasPrefix . "@") }} {{- $content = printf "@%v" . }} {{- end }} {{- end }} {{- end }} {{- end }}