1 {% include 2017/meta-vars.html page=page %}
3 <meta content='width=device-width, initial-scale=1.0' name='viewport'>
4 <link href='{{ base }}/assets/favicon.png' rel='shortcut icon'>
5 <meta content='{{ page.url | escape }}' name='app:pageurl'>
8 <title>{{ meta_title | escape }}</title>
9 <meta content='{{ meta_title | escape }}' property='og:title'>
10 <meta content='{{ meta_title | escape }}' property='twitter:title'>
11 <meta content='{{ page.og_type | default: "article" | escape }}' property='og:type'>
15 <meta content='{{ meta_image | escape }}' property='og:image'>
16 <meta content='{{ meta_image | escape }}' property='twitter:image'>
17 <meta content='900' property='og:image:width'>
18 <meta content='471' property='og:image:height'>
21 {% if meta_description %}
22 <meta content="{{ meta_description | escape }}" name="description">
23 <meta content="{{ meta_description | escape }}" property="og:description">
24 <meta content="{{ meta_description | escape }}" property="twitter:description">
27 <link rel="canonical" href="{{ page_url | escape }}">
28 <meta name="og:url" content="{{ page_url | escape }}">
29 {% if page.url == '/' %}
30 <link rel="prefetch" href="{{ site.url | escape }}">
31 <link rel="prerender" href="{{ site.url | escape }}">
35 {% for author in site.authors | where: "name", page.author %}
36 <meta content='{{ author.name }}' name='author'>
38 <meta content='{{ author.ogp }}' property='article:author'>
44 <meta content='{{ site.title | escape }}' property='og:site_name'>
47 {% if site.facebook.app_id %}
48 <meta content='{{ site.facebook.app_id | escape }}' property='fb:app_id'>
51 {% if site.facebook.admin %}
52 <meta content='{{ site.facebook.admin | escape }}' property='fb:admins'>
56 <meta content='{{ page.date | date: "%Y-%m-%d" }}' property='article:published_date'>
59 {% if page.category %}
60 <meta content='{{ page.category | escape }}' property='article:section'>
64 {% for tag in page.tags %}
65 <meta content='{{ tag | escape }}' property='article:tag'>
69 {% if site.data.google_analytics.enabled %}
70 <script async src='https://www.googletagmanager.com/gtag/js?id={{ site.data.google_analytics.id }}'></script>
72 {% comment %} if(~location.hostname.indexOf('{{site.data.google_analytics.hostname}}')){ {% endcomment %}
73 window.dataLayer=window.dataLayer||[];
74 function gtag(){dataLayer.push(arguments)};
75 gtag('js',new Date());
76 gtag('config','{{ site.data.google_analytics.id }}');
81 <meta property='page:depth' content='{{depth}}'>
84 <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script>
85 <script>(function(H){H.className=H.className.replace(/\bNoJs\b/,'WithJs')})(document.documentElement)</script>