diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
index 0b42da7c3..b54a4bbec 100644
--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -231,12 +231,25 @@ func (t *templateHandler) embedTemplates() {
{{ with .Site.Social.facebook_admin }}{{ end }}`)
- t.addInternalTemplate("", "twitter_cards.html", `{{- with $.Param "images" -}}
+ t.addInternalTemplate("", "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 -}}