-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathhead.html
More file actions
81 lines (71 loc) · 3.93 KB
/
Copy pathhead.html
File metadata and controls
81 lines (71 loc) · 3.93 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
{% if page.layout == "blog" or page.layout == "event" %}
{% capture title %}{{ page.title }} – {{ site.title }}{% endcapture %}
{% elsif page.layout == "doc" %}
{% capture title %}{% t {{ page.texts }}.title %} – {{ site.title }}{% endcapture %}
{% elsif page.title %}
{% capture title %}{% t page.title %} – {{ site.title }}{% endcapture %}
{% else %}
{% capture title %}{{ site.title }} – {% t homepage.header %}{% endcapture %}
{% endif %}
{% if page.layout == "blog" or page.layout == "doc" or page.layout == "event" %}
{% capture descrlong %}{{ page.excerpt }}{% endcapture %}
{% elsif page.excerpt %}
{% capture descrlong %}{% t page.excerpt %}{% endcapture %}
{% else %}
{% capture descrlong %}{% t homepage.description %}{% endcapture %}
{% endif %}
{% capture description %}{{ descrlong | strip | strip_html | strip_newlines | truncate: 180 }}{% endcapture %}
{% capture image %}
{% if page.layout == 'blog' %}
/assets/images/blog/{{ page.image }}
{% elsif page.image %}
/assets/images/{{ page.image }}
{% else %}
/assets/branding/covers/cover_001.png
{% endif %}
{% endcapture %}
{% assign image = image | strip | prepend: site.url %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="view-transition" content="same-origin">
<title>{{ title }}</title>
<meta name="description" content="{{ description }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<link rel="alternate" type="application/rss+xml" title="Blog posts" href="/rss.xml">
<!-- Social: Twitter -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ title }}">
<meta name="twitter:description" content="{{ description }}">
<meta name="twitter:image" content="{{ image }}">
<!-- Social: Facebook / Open Graph -->
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
<meta property="og:title" content="{{ title }}">
<meta property="og:image" content="{{ image }}">
<meta property="og:description" content="{{ description }}">
<meta property="og:site_name" content="{{ site.title }}">
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/assets/branding/favicons/apple-touch-icon.png?v=2">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/branding/favicons/favicon-32x32.png?v=2">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/branding/favicons/favicon-16x16.png?v=2">
<link rel="manifest" href="/assets/branding/favicons/site.webmanifest?v=2">
<link rel="mask-icon" href="/assets/branding/favicons/safari-pinned-tab.svg?v=2" color="#364ff3">
<link rel="shortcut icon" href="/assets/branding/favicons/favicon.ico?v=2">
<meta name="msapplication-TileColor" content="#364ff3">
<meta name="msapplication-config" content="/assets/branding/favicons/browserconfig.xml?v=2">
<meta name="theme-color" content="#ffffff">
<!-- Language redirect (loaded early, runs once per session) -->
<script src="/assets/js/language-redirect.js"></script>
<!-- Theme switcher (loaded early to prevent flash) -->
<script src="/assets/js/theme-switcher.js"></script>
<!-- Resources -->
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/fontawesome/css/all.min.css">
<script src="/assets/js/bootstrap.bundle.min.js"></script>
<script defer src="/assets/js/search.min.js"></script>
<script defer src="/assets/js/tooltip.js"></script>
<script defer src="/assets/js/copy-url.js"></script>
<script defer src="/assets/js/mastodon-share.js"></script>
<script defer src="/assets/js/github-mentions.js"></script>
<script defer src="/assets/js/contributors.js"></script>
<script defer src="/assets/js/localize-links.js"></script>
<script defer src="/assets/js/image-popup.js"></script>