diff --git a/tpl/tplimpl/template_embedded.go b/tpl/tplimpl/template_embedded.go
index b54a4bbec..627d4dc4d 100644
--- a/tpl/tplimpl/template_embedded.go
+++ b/tpl/tplimpl/template_embedded.go
@@ -233,18 +233,18 @@ func (t *templateHandler) embedTemplates() {
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 -}}