2018-01-09 19:58:35 +01:00
|
|
|
<!-- begin _includes/seo.html -->
|
|
|
|
{%- if site.url -%}
|
|
|
|
{%- assign seo_url = site.url | append: site.baseurl -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- assign seo_url = seo_url | default: site.github.url -%}
|
|
|
|
|
2018-01-30 02:38:47 +01:00
|
|
|
{% if site.title_separator %}
|
|
|
|
{% assign title_separator = site.title_separator | default: '-' | replace: '|', '|' %}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
{%- if page.title -%}
|
2018-01-30 02:38:47 +01:00
|
|
|
{%- assign seo_title = page.title | append: " " | append: title_separator | append: " " | append: site.title -%}
|
2018-01-09 19:58:35 +01:00
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{%- if seo_title -%}
|
|
|
|
{%- assign seo_title = seo_title | markdownify | strip_html | strip_newlines | escape_once -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{%- assign canonical_url = page.url | replace: "index.html", "" | absolute_url %}
|
|
|
|
|
|
|
|
{%- assign seo_description = page.description | default: page.excerpt | default: site.description -%}
|
|
|
|
{%- if seo_description -%}
|
|
|
|
{%- assign seo_description = seo_description | markdownify | strip_html | strip_newlines | escape_once -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{%- assign author = page.author | default: page.authors[0] | default: site:author -%}
|
|
|
|
{%- assign author = site.data.authors[author] | default: author -%}
|
|
|
|
|
|
|
|
{%- if author.twitter -%}
|
|
|
|
{%- assign author_twitter = author.twitter | replace: "@", "" -%}
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
{%- assign page_large_image = page.header.og_image | default: page.header.overlay_image | default: page.header.image -%}
|
|
|
|
{%- unless page_large_image contains '://' -%}
|
|
|
|
{%- assign page_large_image = page_large_image | absolute_url -%}
|
|
|
|
{%- endunless -%}
|
|
|
|
{%- assign page_large_image = page_large_image | escape -%}
|
|
|
|
|
|
|
|
{%- assign page_teaser_image = page.header.teaser | default: site.og_image -%}
|
|
|
|
{%- unless page_teaser_image contains '://' -%}
|
|
|
|
{%- assign page_teaser_image = page_teaser_image | absolute_url -%}
|
|
|
|
{%- endunless -%}
|
|
|
|
{%- assign page_teaser_image = page_teaser_image | escape -%}
|
|
|
|
|
|
|
|
{%- assign site_og_image = site.og_image -%}
|
|
|
|
{%- unless site_og_image contains '://' -%}
|
|
|
|
{%- assign site_og_image = site_og_image | absolute_url -%}
|
|
|
|
{%- endunless -%}
|
|
|
|
{%- assign site_og_image = site_og_image | escape -%}
|
|
|
|
|
|
|
|
{%- if page.date -%}
|
|
|
|
{%- assign og_type = "article" -%}
|
|
|
|
{%- else -%}
|
|
|
|
{%- assign og_type = "website" -%}
|
|
|
|
{%- endif -%}
|
2016-02-23 06:17:39 +01:00
|
|
|
|
2018-01-30 02:38:47 +01:00
|
|
|
<title>{{ seo_title | default: site.title }}{% if paginator %}{% unless paginator.page == 1 %} {{ title_separator }} {{ site.data.ui-text[site.locale].page | default: "Page" }} {{ paginator.page }}{% endunless %}{% endif %}</title>
|
2016-09-27 21:19:22 +02:00
|
|
|
<meta name="description" content="{{ seo_description }}">
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
{% if author.name %}
|
|
|
|
<meta name="author" content="{{ author.name | default: author }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
<meta property="og:type" content="{{ og_type }}">
|
2017-02-28 14:57:54 +01:00
|
|
|
<meta property="og:locale" content="{{ site.locale | replace: "-", "_" | default: "en_US" }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
<meta property="og:site_name" content="{{ site.title }}">
|
2016-02-23 16:13:15 +01:00
|
|
|
<meta property="og:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
2018-01-09 19:58:35 +01:00
|
|
|
<meta property="og:url" content="{{ canonical_url }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
|
|
|
|
{% if page.excerpt %}
|
|
|
|
<meta property="og:description" content="{{ seo_description }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
{% if page_large_image %}
|
|
|
|
<meta property="og:image" content="{{ page_large_image }}">
|
|
|
|
{% elsif page_teaser_image %}
|
|
|
|
<meta property="og:image" content="{{ page_teaser_image }}">
|
|
|
|
{% endif %}
|
2017-10-26 21:50:13 +02:00
|
|
|
|
2016-04-14 21:12:04 +02:00
|
|
|
{% if site.twitter.username %}
|
2016-02-23 16:13:15 +01:00
|
|
|
<meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
|
|
|
|
<meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
|
|
|
|
<meta name="twitter:description" content="{{ seo_description }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
<meta name="twitter:url" content="{{ canonical_url }}">
|
2016-02-25 03:23:29 +01:00
|
|
|
|
2017-10-26 21:50:13 +02:00
|
|
|
{% if page_large_image %}
|
2016-02-23 06:17:39 +01:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
2017-10-26 21:50:13 +02:00
|
|
|
<meta name="twitter:image" content="{{ page_large_image }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% else %}
|
|
|
|
<meta name="twitter:card" content="summary">
|
2017-10-26 21:50:13 +02:00
|
|
|
{% if page_teaser_image %}
|
|
|
|
<meta name="twitter:image" content="{{ page_teaser_image }}">
|
2016-02-25 03:23:29 +01:00
|
|
|
{% endif %}
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
{% if author_twitter %}
|
|
|
|
<meta name="twitter:creator" content="@{{ author_twitter }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
{% if page.date %}
|
|
|
|
<meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}">
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if og_type == "article" and page.last_modified_at %}
|
|
|
|
<meta property="article:modified_time" content="{{ page.last_modified_at | date_to_xmlschema }}">
|
|
|
|
{% endif %}
|
|
|
|
|
2016-02-23 06:17:39 +01:00
|
|
|
{% if site.facebook %}
|
|
|
|
{% if site.facebook.publisher %}
|
2016-02-23 16:13:15 +01:00
|
|
|
<meta property="article:publisher" content="{{ site.facebook.publisher }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if site.facebook.app_id %}
|
2016-02-23 16:13:15 +01:00
|
|
|
<meta property="fb:app_id" content="{{ site.facebook.app_id }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-01-09 19:58:35 +01:00
|
|
|
<link rel="canonical" href="{{ canonical_url }}">
|
2016-07-11 17:56:09 +02:00
|
|
|
|
|
|
|
{% if paginator.previous_page %}
|
2018-01-09 19:58:35 +01:00
|
|
|
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}">
|
2016-07-11 17:56:09 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if paginator.next_page %}
|
2018-01-09 19:58:35 +01:00
|
|
|
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}">
|
2016-02-23 06:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2016-04-06 21:50:10 +02:00
|
|
|
{% if site.og_image %}
|
2016-02-23 06:17:39 +01:00
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "Organization",
|
|
|
|
"url": {{ seo_url | jsonify }},
|
2017-10-26 21:50:13 +02:00
|
|
|
"logo": {{ site_og_image | jsonify }}
|
2016-02-23 06:17:39 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if site.social %}
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
2018-01-17 20:36:43 +01:00
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "{% if site.social.type %}{{ site.social.type }}{% else %}Person{% endif %}",
|
|
|
|
"name": {{ site.social.name | default: site.name | jsonify }},
|
|
|
|
"url": {{ seo_url | jsonify }},
|
|
|
|
"sameAs": {{ site.social.links | jsonify }}
|
2016-02-23 06:17:39 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if site.google_site_verification %}
|
|
|
|
<meta name="google-site-verification" content="{{ site.google_site_verification }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% if site.bing_site_verification %}
|
|
|
|
<meta name="msvalidate.01" content="{{ site.bing_site_verification }}">
|
|
|
|
{% endif %}
|
2016-06-09 18:56:40 +02:00
|
|
|
{% if site.alexa_site_verification %}
|
2016-02-23 06:17:39 +01:00
|
|
|
<meta name="alexaVerifyID" content="{{ site.alexa_site_verification }}">
|
|
|
|
{% endif %}
|
2016-06-09 18:56:40 +02:00
|
|
|
{% if site.yandex_site_verification %}
|
2016-02-23 06:17:39 +01:00
|
|
|
<meta name="yandex-verification" content="{{ site.yandex_site_verification }}">
|
|
|
|
{% endif %}
|
2018-06-04 18:10:27 +02:00
|
|
|
{% if site.naver_site_verification %}
|
|
|
|
<meta name="naver-site-verification" content="{{ site.naver_site_verification }}">
|
2017-10-04 17:16:08 +02:00
|
|
|
{% endif %}
|
2018-01-09 19:58:35 +01:00
|
|
|
<!-- end _includes/seo.html -->
|