1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-01 13:47:09 +01:00
website/_src/_includes/head.html

81 lines
3.2 KiB
HTML
Raw Normal View History

2017-08-09 17:12:21 +02:00
<head>
<meta charset="utf-8">
<!-- Dynamic meta title -->
<title>
{% if page.title %}
2017-09-04 14:29:04 +02:00
{{ page.title }} · {{ site.title }}
2017-08-09 17:12:21 +02:00
{% else %}
2017-09-04 14:29:04 +02:00
{{ site.title }} · {{ site.description }}
2017-08-09 17:12:21 +02:00
{% endif %}
</title>
<!-- Dynamic meta description -->
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% elsif page.front_page %}
2017-09-04 14:29:04 +02:00
<meta name="description" content="{{ site.data.content-front.hero.description | strip_html | strip_newlines }}">
2017-08-09 17:12:21 +02:00
{% else %}
<meta name="description" content="{{ page.excerpt | strip_html | strip_newlines }}" />
{% endif %}
<!-- Mobile meta stuff -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cleartype" content="on">
<!-- Typekit advanced async snippet -->
<script>
(function(d) {
var config = {
kitId: '{{ site.typekitID }}',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document)
</script>
2017-08-09 17:12:21 +02:00
<!-- CSS -->
<link rel="stylesheet" href="/assets/css/ipdb.min.css">
{% if page.css %}
<link rel="stylesheet" href="/assets/css/{{ page.css }}.min.css">
{% endif %}
<!-- Canonical URL -->
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html','' }}">
{% for alt in page.alternate %}
<link rel="alternate" href="{{ site.url }}{{ alt.link }}" hreflang="{{ alt.language }}" />
{% endfor %}
2017-08-09 17:12:21 +02:00
<!-- Apple -->
<meta name="apple-mobile-web-app-title" content="{{ site.title }}">
<!-- Touch Icons -->
<link rel="apple-touch-icon" href="/assets/img/touch-icon.png">
<link rel="icon" type="image/png" href="/assets/img/touch-icon.png" sizes="192x192">
<link rel="icon" type="image/png" href="/assets/img/favicon32.png" sizes="32x32">
<link rel="icon" type="image/png" href="/assets/img/favicon16.png" sizes="16x16">
2017-09-04 14:29:04 +02:00
<link rel="mask-icon" href="/assets/img/favicon-glyph.svg" color="#093749">
2017-08-09 17:12:21 +02:00
<!-- Win 8/8.1 -->
<meta name="msapplication-TileImage" content="{{ site.url }}/assets/img/touch-icon.png"/>
2017-09-04 14:29:04 +02:00
<meta name="msapplication-TileColor" content="#093749"/>
2017-08-09 17:12:21 +02:00
<!-- Android Lollipop theme color -->
2017-09-04 14:29:04 +02:00
<meta name="theme-color" content="#093749">
2017-08-09 17:12:21 +02:00
<!-- Prevent search indexing for some pages or non-production builds -->
{% if jekyll.environment != 'production' or page.sitemap == false %}
<meta name="robots" content="noindex, nofollow">
{% endif %}
<meta name="robots" content="noindex, nofollow">
2017-09-04 14:29:04 +02:00
{% include sharing.html %}
2017-08-09 17:12:21 +02:00
</head>