{{/* This is a modified copy/paste of https://github.com/gohugoio/hugo/blob/2b73e89d6d2822e86360a6c92c87f539677c119b/tpl/tplimpl/embedded/templates/twitter_cards.html */}}
{{- with $.Params.images -}}
{{ else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- $featured := cond (ne $featured nil) $featured ($images.GetMatch "{*cover*,*thumbnail*}") -}}
{{- with $featured -}}
{{- else -}}
{{- with $.Site.Params.images -}}
{{ else -}}
{{- end -}}
{{- end -}}
{{- end }}
{{ with .Site.Social.twitter -}}
{{ end -}}
{{ range .Site.Authors }}
{{ with .twitter -}}
{{ end -}}
{{ end -}}