-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathheaders.html
46 lines (40 loc) · 2.55 KB
/
headers.html
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
{% macro headers(title, section) -%}
<!-- Twitter card -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@rustlang">
<meta name="twitter:creator" content="@rustlang">
<meta name="twitter:title" content="{{ macros::escape_hbs(input=title) }}">
<meta name="twitter:description" content="{{ section.description }}">
<meta name="twitter:image" content="https://www.rust-lang.org/static/images/rust-social.jpg">
<!-- Facebook OpenGraph -->
<meta property="og:title" content="{{ macros::escape_hbs(input=title) }}" />
<meta property="og:description" content="{{ section.description }}">
<meta property="og:image" content="https://www.rust-lang.org/static/images/rust-social-wide.jpg" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<!-- styles -->
<link rel="stylesheet" href="{{ config.base_url | safe }}/styles/skeleton.css"/>
<link rel="stylesheet" href="{{ config.base_url | safe }}/styles/tachyons.css"/>
<link rel="stylesheet" href="{{ config.base_url | safe }}/styles/fonts.css"/>
<link rel="stylesheet" href="{{ config.base_url | safe }}/styles/app.css"/>
<link rel="stylesheet" type="text/css" id="syntax-theme" />
<!-- stylesheet for user agents without js -->
<noscript>
<link rel="stylesheet" href="{{ config.base_url | safe }}/styles/noscript.css">
<link rel="stylesheet" type="text/css" href="/styles/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" />
<link rel="stylesheet" type="text/css" href="/styles/syntax-theme-light.css" media="(prefers-color-scheme: light)" />
</noscript>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ config.base_url | safe }}/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="{{ config.base_url | safe }}/images/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ config.base_url | safe }}/images/favicon-32x32.png">
<link rel="icon" type="image/svg+xml" href="{{ config.base_url | safe }}/images/favicon.svg">
<link rel="manifest" href="{{ config.base_url | safe }}/images/site.webmanifest">
<link rel="mask-icon" href="{{ config.base_url | safe }}/images/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
<!-- atom -->
<link type="application/atom+xml" rel="alternate" href="https://blog.rust-lang.org{{ section.path | safe }}feed.xml" title="{{ section.title }}" />
<!-- theme switcher -->
<script src="{{ config.base_url | safe }}/scripts/theme-switch.js"></script>
{% endmacro %}