{% capture pagetitle %} {%- if page.share-title -%} {{ page.share-title | strip_html | xml_escape }} {%- elsif page.title -%} {{ page.title | strip_html | xml_escape }} {%- else -%} {{ site.title | strip_html | xml_escape }} {%- endif -%} {% endcapture %} {% capture title %} {%- if site.title and site.title-on-all-pages and (site.title != pagetitle) -%} {{ pagetitle }} | {{ site.title }} {%- else -%} {{ pagetitle }} {%- endif -%} {% endcapture %} {% capture description %} {%- if page.share-description -%} {{ page.share-description | strip_html | xml_escape }} {%- elsif page.subtitle -%} {{ page.subtitle | strip_html | xml_escape }} {%- else -%} {%- assign excerpt_length = site.excerpt_length | default: 50 -%} {{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }} {%- endif -%} {% endcapture %} {{ title }} {% capture author %} {%- if page.author -%} {{ page.author | strip_html }} {%- elsif site.author -%} {{ site.author }} {%- endif -%} {% endcapture %} {% if author != "" %} {% endif %} {% if site.mobile-theme-col %} {% endif %} {% if site.keywords %} {% endif %} {% if site.rss-description %} {% endif %} {% include gtag.html %} {% include gtm_head.html %} {% include google_analytics.html %} {% include cloudflare_analytics.html %} {% include mathjax.html %} {% if layout.common-ext-css %} {% for css in layout.common-ext-css %} {% include ext-css.html css=css %} {% endfor %} {% endif %} {% if layout.common-css %} {% for css in layout.common-css %} {% endfor %} {% endif %} {% if site.site-css %} {% for css in site.site-css %} {% endfor %} {% endif %} {% if page.ext-css %} {% for css in page.ext-css %} {% include ext-css.html css=css %} {% endfor %} {% endif %} {% if page.css %} {% for css in page.css %} {% endfor %} {% endif %} {% if site.fb_app_id %} {% endif %} {% if site.title %} {% endif %} {%- capture img -%} {%- if page.share-img -%} {{ page.share-img }} {%- elsif page.cover-img -%} {%- if page.cover-img.first -%} {{ page.cover-img[0].first.first }} {%- else -%} {{ page.cover-img }} {%- endif -%} {%- elsif page.thumbnail-img -%} {{ page.thumbnail-img }} {%- elsif site.avatar -%} {{ site.avatar }} {% endif %} {%- endcapture -%} {%- assign img=img | strip -%} {% if img != "" %} {% endif %} {% if page.id %} {% if author != "" %} {% endif %} {% else %} {% endif %} {% if img != "" and img != site.avatar %} {% else %} {% endif %} {% if img != "" %} {% endif %} {% include matomo.html %} {% if page.comments and site.staticman.repository and site.staticman.branch %} {% endif %} {% assign favicon_exists = site.static_files | where: "path", "/favicon.ico" | size %} {% if favicon_exists == 1 %} {% endif %} {% if page.head-extra %} {% for file in page.head-extra %} {% include {{ file }} %} {% endfor %} {% endif %}