2015-03-02 12:06:05 -08:00
|
|
|
<head>
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2015-03-02 12:06:05 -08:00
|
|
|
|
2020-08-23 19:23:14 +00:00
|
|
|
{% capture title %}
|
2020-08-23 07:09:44 +00:00
|
|
|
{%- if page.share-title -%}
|
|
|
|
{{ page.share-title }}
|
|
|
|
{%- elsif page.title -%}
|
|
|
|
{{ page.title }}
|
|
|
|
{%- else -%}
|
|
|
|
{{ site.title }}
|
|
|
|
{%- endif -%}
|
2020-08-23 19:23:14 +00:00
|
|
|
{% endcapture %}
|
2020-08-07 18:03:44 -07:00
|
|
|
|
2020-08-23 19:23:14 +00:00
|
|
|
{% capture description %}
|
2020-08-23 07:09:44 +00:00
|
|
|
{%- if page.share-description -%}
|
|
|
|
{{ page.share-description }}
|
2020-08-22 08:39:54 +00:00
|
|
|
{%- elsif page.subtitle -%}
|
|
|
|
{{ page.subtitle }}
|
|
|
|
{%- else -%}
|
2020-08-23 19:23:14 +00:00
|
|
|
{%- assign excerpt_length = site.excerpt_length | default: 50 -%}
|
|
|
|
{{ page.content | strip_html | xml_escape | truncatewords: excerpt_length | strip }}
|
2020-08-22 08:39:54 +00:00
|
|
|
{%- endif -%}
|
2020-08-23 19:23:14 +00:00
|
|
|
{% endcapture %}
|
2020-08-23 07:09:44 +00:00
|
|
|
|
|
|
|
<title>{{ title }}</title>
|
|
|
|
|
|
|
|
{% if site.author %}
|
|
|
|
<meta name="author" content="{{ site.author }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2020-08-22 08:39:54 +00:00
|
|
|
<meta name="description" content="{{ description }}">
|
2015-03-02 12:06:05 -08:00
|
|
|
|
2020-08-08 06:09:00 +00:00
|
|
|
{% if site.mobile-theme-col %}
|
|
|
|
<meta name="theme-color" content="{{ site.mobile-theme-col }}">
|
2020-08-07 19:13:54 -07:00
|
|
|
{% endif %}
|
|
|
|
|
2020-08-07 20:06:10 -07:00
|
|
|
{% if site.keywords %}
|
|
|
|
<meta name="keywords" content="{{ site.keywords }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}">
|
2016-06-04 01:55:17 -07:00
|
|
|
|
2018-07-06 11:31:25 -04:00
|
|
|
{% include gtag.html %}
|
2017-01-09 07:43:53 +03:00
|
|
|
{% include gtm_head.html %}
|
2018-10-20 17:03:21 -04:00
|
|
|
{% include google_analytics.html %}
|
2017-01-09 07:43:53 +03:00
|
|
|
|
2016-02-01 18:07:13 -08:00
|
|
|
{% if layout.common-ext-css %}
|
|
|
|
{% for css in layout.common-ext-css %}
|
2017-01-28 10:19:00 +11:00
|
|
|
{% include ext-css.html css=css %}
|
2015-03-02 17:10:41 -08:00
|
|
|
{% endfor %}
|
2016-09-29 08:36:33 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2016-02-01 18:07:13 -08:00
|
|
|
{% if layout.common-css %}
|
|
|
|
{% for css in layout.common-css %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<link rel="stylesheet" href="{{ css | relative_url }}">
|
2015-03-02 17:10:41 -08:00
|
|
|
{% endfor %}
|
2016-09-29 08:36:33 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2020-08-19 23:19:54 -04:00
|
|
|
{% if site.site-css %}
|
|
|
|
{% for css in site.site-css %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<link rel="stylesheet" href="{{ css | relative_url }}">
|
2016-02-04 16:42:30 -08:00
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2020-08-22 08:39:54 +00:00
|
|
|
|
|
|
|
{% if page.ext-css %}
|
|
|
|
{% for css in page.ext-css %}
|
|
|
|
{% include ext-css.html css=css %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2020-08-19 23:19:54 -04:00
|
|
|
|
|
|
|
{% if page.css %}
|
|
|
|
{% for css in page.css %}
|
2020-08-07 18:10:02 -07:00
|
|
|
<link rel="stylesheet" href="{{ css | relative_url }}">
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2016-09-29 08:36:33 +00:00
|
|
|
{% if site.fb_app_id %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta property="fb:app_id" content="{{ site.fb_app_id }}">
|
2016-09-29 08:36:33 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2020-08-07 23:18:14 -07:00
|
|
|
{% if site.title %}
|
|
|
|
<meta property="og:site_name" content="{{ site.title }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
{%- capture img -%}
|
2020-08-22 08:39:54 +00:00
|
|
|
{%- 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 -%}
|
2020-08-23 07:09:44 +00:00
|
|
|
{%- assign img=img | strip -%}
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
<meta property="og:title" content="{{ title }}">
|
|
|
|
<meta property="og:description" content="{{ description }}">
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
{% if img != "" %}
|
|
|
|
<meta property="og:image" content="{{ img | absolute_url }}">
|
2020-08-22 08:39:54 +00:00
|
|
|
{% endif %}
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-06-28 21:53:25 +02:00
|
|
|
{% 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 }}">
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta property="og:url" content="{{ page.url | absolute_url }}">
|
|
|
|
<link rel="canonical" href="{{ page.url | absolute_url }}">
|
2015-03-31 00:30:08 -07:00
|
|
|
{% else %}
|
2020-08-23 07:09:44 +00:00
|
|
|
<meta property="og:type" content="website">
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta property="og:url" content="{{ page.url | absolute_url | strip_index }}">
|
|
|
|
<link rel="canonical" href="{{ page.url | absolute_url | strip_index }}">
|
2015-03-31 00:30:08 -07:00
|
|
|
{% endif %}
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
{% if img != "" and img != site.avatar %}
|
2020-06-30 21:06:03 +02:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
{% else %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta name="twitter:card" content="summary">
|
2020-06-30 21:06:03 +02:00
|
|
|
{% endif %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<meta name="twitter:site" content="@{{ site.social-network-links.twitter }}">
|
|
|
|
<meta name="twitter:creator" content="@{{ site.social-network-links.twitter }}">
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
<meta property="twitter:title" content="{{ title }}">
|
|
|
|
<meta property="twitter:description" content="{{ description }}">
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2020-08-23 07:09:44 +00:00
|
|
|
{% if img != "" %}
|
|
|
|
<meta name="twitter:image" content="{{ img | absolute_url }}">
|
2016-07-20 15:00:09 -07:00
|
|
|
{% endif %}
|
2016-09-29 08:36:33 +00:00
|
|
|
|
2018-01-22 08:14:52 +01:00
|
|
|
{% include matomo.html %}
|
|
|
|
|
2018-12-25 23:21:42 +01:00
|
|
|
{% if page.comments and site.staticman.repository and site.staticman.branch %}
|
2020-05-02 02:10:20 -04:00
|
|
|
<link rel="stylesheet" href="{{ "/assets/css/staticman.css" | relative_url }}">
|
2018-12-25 23:21:42 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2020-08-08 21:44:57 -04:00
|
|
|
{% if page.head-extra %}
|
2020-08-24 20:43:43 +00:00
|
|
|
{% for file in page.head-extra %}
|
|
|
|
{% include {{ file }} %}
|
|
|
|
{% endfor %}
|
2020-08-08 21:44:57 -04:00
|
|
|
{% endif %}
|
|
|
|
|
2015-03-31 00:49:22 -07:00
|
|
|
</head>
|