{{- $images := partial "_funcs/get-page-images" . }} {{- with index $images 0 }} {{- else }} {{- end }} {{- with or .Title site.Title site.Params.title | plainify }} {{- end }} {{- with or .Description .Summary site.Params.description | 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 }}