diff --git a/_includes/head.html b/_includes/head.html
index 0947587d3d2..02468555ca4 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -26,14 +26,14 @@
{% assign properties = 'og:image,twitter:image' | split: ',' %}
{% for prop in properties %}
- {% if site.img_cdn contains '//' %}
+ {% if site.img_cdn contains '://' %}
{% capture target %}