{% capture seo_tags %} {% seo title=false %} {% endcapture %} {% if page.image %} {% assign img = page.image.path | default: page.image %} {% unless img contains '://' %} {% assign img_path = page.img_path | append: '/' | append: img | replace: '//', '/' %} {% capture target %}"{{ img | absolute_url }}"{% endcapture %} {% if site.img_cdn contains '//' %} {% capture replacement %}"{{ site.img_cdn }}{{ img_path }}"{% endcapture %} {% else %} {%- capture replacement -%} "{{ site.img_cdn | append: '/' | append: img_path | replace: '//', '/' | absolute_url }}" {%- endcapture -%} {% endif %} {% assign seo_tags = seo_tags | replace: target, replacement %} {% endunless %} {% endif %} {{ seo_tags }} {%- unless page.layout == 'home' -%} {{ page.title | append: ' | ' }} {%- endunless -%} {{ site.title }} {% include_cached favicons.html %} {% if site.resources.ignore_env != jekyll.environment and site.resources.self_hosted %} {% else %} {% for cdn in site.data.origin[type].cdns %} {% endfor %} {% endif %} {% if jekyll.environment == 'production' and site.google_analytics.id != empty and site.google_analytics.id %} {% endif %} {% if site.toc and page.toc %} {% endif %} {% if page.layout == 'post' or page.layout == 'page' or page.layout == 'home' %} {% endif %} {% if page.layout == 'page' or page.layout == 'post' %} {% endif %} {% unless site.theme_mode %} {% include mode-toggle.html %} {% endunless %} {% include metadata-hook.html %}