-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.html
More file actions
83 lines (72 loc) · 3.61 KB
/
Copy pathhead.html
File metadata and controls
83 lines (72 loc) · 3.61 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<head>
<!-- META -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="{{ site.title }}; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ site.author }}">
<link rel="canonical" href="{{ site.url }}{{ page.url | replace:'index.html',''}}">
{% if page.title == 'Home' %}
<title>{{ site.title }} | {{ site.data.strings.description-home }}</title>
{% else %}
<title>{{ page.title }} | {{ site.title }}</title>
{% endif %}
{% if page.description %}
<meta name="description" content="{{ page.description }}">
{% else %}
<meta name="description" content="{{ site.data.strings.description }}">
{% endif %}
{% if page.keywords %}
<meta name="keywords" content="{{ page.keywords }}">
{% else %}
<meta name="keywords" content="{{ site.data.strings.keywords }}"/>
{% endif %}
<!-- OG META -->
<meta property="og:type" content="website" />
<meta property="og:url" content="{{ site.url }}{{ page.url | replace:'index.html',''}}" />
<meta property="og:locale" content="pl_PL" />
<meta property="og:locale:alternate" content="en_US" />
<meta property="og:locale:alternate" content="en_GB" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@maciejnowa">
{% if page.title == 'Home' %}
<meta property="og:title" content="{{ site.title }} | {{ site.data.strings.description-home }}" />
<meta name="twitter:title" content="{{ site.title }} | {{ site.data.strings.description-home }}" />
{% else %}
<meta property="og:title" content="{{ page.title }} | {{ site.title }}" />
<meta name="twitter:title" content="{{ page.title }} | {{ site.title }}" />
{% endif %}
{% if page.description %}
<meta property="og:description" content="{{ page.description }}" />
<meta name="twitter:description" content="{{ page.description }}" />
{% else %}
<meta property="og:description" content="{{ site.data.strings.description }}" />
<meta name="twitter:description" content="{{ site.data.strings.description }}" />
{% endif %}
{% if page.image %}
<meta property="og:image" content="{{ site.url }}/assets/img/posts/{{ page.image }}_thumb.jpg" />
<meta property="og:image:secure_url" content="{{ site.url }}/assets/img/posts/{{ page.image }}_thumb.jpg" />
<meta name="twitter:image" content="{{ site.url }}/assets/img/posts/{{ page.image }}_thumb.jpg" />
{% else %}
<meta property="og:image" content="{{ site.url }}/assets/img/logo.png" />
<meta property="og:image:secure_url" content="{{ site.url }}/assets/img/logo.png" />
<meta name="twitter:image" content="{{ site.url }}/assets/img/logo.png" />
{% endif %}
<!-- FAVICON -->
<link rel="shortcut icon" href="{{ '/assets/img/icons/favicon.ico | relative_url }}" type="image/x-icon">
<link rel="icon" href="{{ '/assets/img/icons/favicon.ico | relative_url }}" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="{{'/assets/img/icons/favicon-32x32.png' | relative_url }}">
<link rel="icon" type="image/png" sizes="16x16" href="{{'/assets/img/icons/favicon-16x16.png' | relative_url }}">
<!-- STYLESHEET -->
<style class="inlineCSS">
{% include assets/critical.css %}
</style>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="preload" href="{{ '/assets/css/style.css' | relative_url }}" as="style" onload="this.rel='stylesheet'">
<noscript>
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
</noscript>
<script type="text/javascript">
{% include assets/loadCss.js %}
</script>
</head>