diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 208151c..4385ca1 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -45,10 +45,9 @@
{{ else }}
{{ with .Site.Params.openGraphImage }}
- {{ else }}
- {{ with .Site.Params.twitterImage }}
-
- {{ end }}
+ {{ else }}
+ {{ with .Site.Params.twitterImage }}
+
{{ end }}
{{ end }}
{{ end }}