123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <title>{% if page.use-site-title %}{{ site.title }} {{ site.title-separator | default: '-' }} {{ site.description }}{% elsif page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
-
- {% if site.author %}
- <meta name="author" content="{{ site.author }}">
- {% endif %}
-
- {% if page.subtitle %}
- <meta name="description" content="{{ page.subtitle }}">
- {% endif %}
- <link rel="alternate" type="application/rss+xml" title="{{ site.title | default: 'Untitled' }} {{ site.title-separator | default: '-' }} {{ site.description }}" href="{{ '/feed.xml' | absolute_url }}">
- {% include gtag.html %}
- {% include gtm_head.html %}
- {% include google_analytics.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 %}
- <link rel="stylesheet" href="{{ css | relative_url }}">
- {% 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 %}
- <link rel="stylesheet" href="{{ css | relative_url }}">
- {% endfor %}
- {% endif %}
- <!-- Facebook OpenGraph tags -->
- {% if site.fb_app_id %}
- <meta property="fb:app_id" content="{{ site.fb_app_id }}">
- {% endif %}
- {% if page.meta-title %}
- <meta property="og:title" content="{{ page.meta-title }}">
- {% elsif page.title %}
- <meta property="og:title" content="{{ page.title }}">
- {% elsif site.title %}
- <meta property="og:title" content="{{ site.title }}">
- {% endif %}
- {% if page.meta-description %}
- <meta property="og:description" content="{{ page.meta-description }}">
- {% elsif page.subtitle %}
- <meta property="og:description" content="{{ page.subtitle }}">
- {% else %}
- <meta property="og:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
- {% endif %}
- {% if page.id %}
- <meta property="og:type" content="article">
- <meta property="og:article:author" content="{{ site.author }}">
- <meta property="og:article:published_time" content="{{ page.date | date_to_xmlschema }}">
- {% else %}
- <meta property="og:type" content="website">
- {% endif %}
- {% if page.id %}
- <meta property="og:url" content="{{ page.url | absolute_url }}">
- <link rel="canonical" href="{{ page.url | absolute_url }}">
- {% else %}
- <meta property="og:url" content="{{ page.url | absolute_url | strip_index }}">
- <link rel="canonical" href="{{ page.url | absolute_url | strip_index }}">
- {% endif %}
- {%- capture shareimg -%}
- {% 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 shareimg=shareimg | strip %}
- {% if shareimg != "" %}
- <meta property="og:image" content="{{ shareimg | absolute_url }}">
- {% endif %}
- <!-- Twitter summary cards -->
- {% if shareimg != "" and shareimg != site.avatar %}
- <meta name="twitter:card" content="summary_large_image">
- {% else %}
- <meta name="twitter:card" content="summary">
- {% endif %}
- <meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
- <meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
- {% if page.meta-title %}
- <meta name="twitter:title" content="{{ page.meta-title }}">
- {% elsif page.title %}
- <meta name="twitter:title" content="{{ page.title }}">
- {% else %}
- <meta name="twitter:title" content="{{ site.title }}">
- {% endif %}
- {% if page.meta-description %}
- <meta name="twitter:description" content="{{ page.meta-description }}">
- {% elsif page.subtitle %}
- <meta name="twitter:description" content="{{ page.subtitle }}">
- {% else %}
- <meta name="twitter:description" content="{{ page.content | strip_html | xml_escape | truncatewords: 50 }}">
- {% endif %}
- {% if shareimg != "" %}
- <meta name="twitter:image" content="{{ shareimg | absolute_url }}">
- {% endif %}
- {% if site.matomo %}
- {% include matomo.html %}
- {% endif %}
- {% if page.comments and site.staticman.repository and site.staticman.branch %}
- <!-- Staticman -->
- <link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
- {% endif %}
- </head>
|