aboutsummaryrefslogtreecommitdiffstats
path: root/site/_includes/head.html
blob: fb81bfae07db94f43e664d52ca8f62d75bb7a653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
    <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else if page.description %}{{ page.description }} {% else %}{{ site.description }}{% endif %}">

    <title>
	    {{ site.title_prefix }}
        {% if page.title %}
            {% if page.title_suffix %}
                {{ page.title }} {{ page.title_suffix }}
            {% else %}
                {{ page.title }} {{ site.title_suffix }}
            {% endif %}
        {% else %}
            {{ site.title }}
        {% endif %}
    </title>

    <link rel="SHORTCUT ICON" href="{{ site.baseurl }}/favicon.ico"/>

    {% capture canonical_link %}{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'index.html','' }}{% endcapture %}

    {% comment %}
    Canonical link for docs pages should point to the latest version of the page
    {% endcomment %}
    {% if page.version %}
        {% capture latest_url %}{{ page.url | replace_first: page.version, 'latest' }}{% endcapture %}

        {% if site.data.all-pages contains latest_url %}
            {% capture canonical_link %}{{ canonical_link | replace_first: page.version, 'latest' }}{% endcapture %}
        {% endif %}
    {% endif %}

    <link rel="canonical" href="{{ canonical_link }}">

    <!-- CSS -->
    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/styles/main.css">
    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/styles/syntax.css">
    <!-- Algolia Search CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />

    <!-- Fonts -->
    <!-- For attribution information, see www/attributions.html -->
    <link href='https://fonts.googleapis.com/css?family=Raleway:700,400,300,700italic,400italic,300italic' rel='stylesheet' type='text/css'>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    <!-- <script defer type="text/javascript">
        var disqus_developer = {{ site.disqus.devmode }}; // this would set it to developer mode
    </script>-->

    <!-- JS -->
    <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/jquery-2.1.1.min.js"></script>
    <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/bootstrap.min.js"></script>
<!--    <script defer type="text/javascript" src="{{ site.baseurl }}/static/js/lib/ZeroClipboard.js"></script>-->

    {% include analytics.html %}
</head>