diff --git a/_includes/head.html b/_includes/head.html
index 0947587d3d2..4892bc2a062 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -22,22 +22,28 @@
{% seo title=false %}
{% endcapture %}
- {% if site.img_cdn and seo_tags contains 'og:image' %}
+ {% if seo_tags contains ':image' %}
{% assign properties = 'og:image,twitter:image' | split: ',' %}
{% for prop in properties %}
- {% if site.img_cdn contains '//' %}
-
- {% capture target %}