aboutsummaryrefslogtreecommitdiffstats
path: root/site/_includes/head.html
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2016-11-08 12:39:57 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2016-11-10 14:53:01 +0100
commitc530e84843444a40804e0c2b038c2ec53fe411b2 (patch)
tree1a9eebf49fd85027ba472bad8c178d686bad8d56 /site/_includes/head.html
webdocs-agl: added developer website template
Change-Id: I4a45ee0ad5dd0c29a6d6876a0e02cd5550c010e9 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'site/_includes/head.html')
-rw-r--r--site/_includes/head.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/site/_includes/head.html b/site/_includes/head.html
new file mode 100644
index 0000000..8f1523f
--- /dev/null
+++ b/site/_includes/head.html
@@ -0,0 +1,63 @@
+<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>
+ {% 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 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>