{% if page.layout == 'home' or page.layout == 'post' %} {% if site.google_analytics.pv.proxy_endpoint %} {% endif %} {% if site.google_analytics.pv.cache_path %} {% endif %} {% endif %} {% capture seo_tags %} {% seo title=false %} {% endcapture %} {% if page.image.path %} {% capture target %}"{{ site.url }}{{ page.image.path | relative_url }}"{% endcapture %} {% if site.img_cdn contains '//' %} {% capture replacement %}"{{ site.img_cdn }}{{ page.img_path }}{{ page.image.path }}"{% endcapture %} {% else %} {%- 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 %} {% endif %} {{ seo_tags }}