|
1 | | -{% macro headers(title, section) -%} |
| 1 | +{% macro headers(title, section, root) -%} |
2 | 2 | <!-- Twitter card --> |
3 | 3 | <meta name="twitter:card" content="summary"> |
4 | 4 | <meta name="twitter:site" content="@rustlang"> |
|
15 | 15 | <meta property="og:locale" content="en_US" /> |
16 | 16 |
|
17 | 17 | <!-- styles --> |
18 | | -<link rel="stylesheet" href="/styles/vendor.css"/> |
19 | | -<link rel="stylesheet" href="/styles/fonts.css"/> |
20 | | -<link rel="stylesheet" href="/styles/app.css"/> |
21 | | -<link rel="stylesheet" href="/styles/highlight.css"/> |
| 18 | +<link rel="stylesheet" href="{{ root }}styles/vendor.css"/> |
| 19 | +<link rel="stylesheet" href="{{ root }}styles/fonts.css"/> |
| 20 | +<link rel="stylesheet" href="{{ root }}styles/app.css"/> |
| 21 | +<link rel="stylesheet" href="{{ root }}styles/highlight.css"/> |
22 | 22 |
|
23 | 23 | <!-- stylesheet for user agents without js --> |
24 | 24 | <noscript> |
25 | | - <link rel="stylesheet" href="/styles/noscript.css"> |
| 25 | + <link rel="stylesheet" href="{{ root }}styles/noscript.css"> |
26 | 26 | </noscript> |
27 | 27 |
|
28 | 28 | <!-- favicon --> |
29 | | -<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png"> |
30 | | -<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png"> |
31 | | -<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png"> |
32 | | -<link rel="icon" type="image/svg+xml" href="/images/favicon.svg"> |
33 | | -<link rel="manifest" href="/images/site.webmanifest"> |
34 | | -<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#5bbad5"> |
| 29 | +<link rel="apple-touch-icon" sizes="180x180" href="{{ root }}images/apple-touch-icon.png"> |
| 30 | +<link rel="icon" type="image/png" sizes="16x16" href="{{ root }}images/favicon-16x16.png"> |
| 31 | +<link rel="icon" type="image/png" sizes="32x32" href="{{ root }}images/favicon-32x32.png"> |
| 32 | +<link rel="icon" type="image/svg+xml" href="{{ root }}images/favicon.svg"> |
| 33 | +<link rel="manifest" href="{{ root }}images/site.webmanifest"> |
| 34 | +<link rel="mask-icon" href="{{ root }}images/safari-pinned-tab.svg" color="#5bbad5"> |
35 | 35 | <meta name="msapplication-TileColor" content="#00aba9"> |
36 | 36 | <meta name="theme-color" content="#ffffff"> |
37 | 37 |
|
38 | 38 | <!-- atom --> |
39 | 39 | <link type="application/atom+xml" rel="alternate" href="https://blog.rust-lang.org/{{ section.path }}feed.xml" title="{{ section.title }}" /> |
40 | 40 |
|
41 | 41 | <!-- theme switcher --> |
42 | | -<script src="/scripts/theme-switch.js"></script> |
| 42 | +<script src="{{ root }}scripts/theme-switch.js"></script> |
43 | 43 | {% endmacro %} |
0 commit comments