{{- with $.Params.images -}}
{{/* try to get the image from the page bundle */}}
{{- with $.Page.Resources.GetMatch (printf "*%s*" .) -}}
{{- else -}}
{{- end -}}
{{ else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
{{- else -}}
{{- with $.Site.Params.images -}}
{{ else -}}
{{- end -}}
{{- end -}}
{{- end }}
{{ with .Site.Social.twitter -}}
{{ end -}}
{{ range .Site.Authors }}
{{ with .twitter -}}
{{ end -}}
{{ end -}}