diff --git a/_includes/head.html b/_includes/head.html
index 0947587..8e3756a 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -22,23 +22,21 @@
{% seo title=false %}
{% endcapture %}
- {% if site.img_cdn and seo_tags contains 'og:image' %}
- {% assign properties = 'og:image,twitter:image' | split: ',' %}
+ {% if page.image.path %}
+ {% capture target %}"{{ site.url }}{{ page.image.path | relative_url }}"{% endcapture %}
- {% for prop in properties %}
- {% if site.img_cdn contains '//' %}
-
- {% capture target %}
+ {%- capture replacement -%}
+ "{{ site.url }}{{ site.baseurl }}{{ site.img_cdn }}{{ page.img_path }}{{ page.image.path }}"
+ {%- endcapture -%}
+ {% endif %}
- {% assign seo_tags = seo_tags | replace: target, replacement %}
+ {% assign seo_tags = seo_tags | replace: target, replacement %}
- {% endfor %}
{% endif %}
{{ seo_tags }}