|
20 | 20 | <meta name="theme-color" content="#ffffff">
|
21 | 21 |
|
22 | 22 | {{#if favicon_svg}}
|
23 |
| - <link rel="icon" href="{{ path_to_root }}favicon.svg"> |
| 23 | + <link rel="icon" href="{{ resource "favicon.svg" }}"> |
24 | 24 | {{/if}}
|
25 | 25 | {{#if favicon_png}}
|
26 |
| - <link rel="shortcut icon" href="{{ path_to_root }}favicon.png"> |
| 26 | + <link rel="shortcut icon" href="{{ resource "favicon.png" }}"> |
27 | 27 | {{/if}}
|
28 |
| - <link rel="stylesheet" href="{{ path_to_root }}css/variables.css"> |
29 |
| - <link rel="stylesheet" href="{{ path_to_root }}css/general.css"> |
30 |
| - <link rel="stylesheet" href="{{ path_to_root }}css/chrome.css"> |
| 28 | + <link rel="stylesheet" href="{{ resource "css/variables.css" }}"> |
| 29 | + <link rel="stylesheet" href="{{ resource "css/general.css" }}"> |
| 30 | + <link rel="stylesheet" href="{{ resource "css/chrome.css" }}"> |
31 | 31 | {{#if print_enable}}
|
32 |
| - <link rel="stylesheet" href="{{ path_to_root }}css/print.css" media="print"> |
| 32 | + <link rel="stylesheet" href="{{ resource "css/print.css" }}" media="print"> |
33 | 33 | {{/if}}
|
34 | 34 |
|
35 | 35 | <!-- Fonts -->
|
36 |
| - <link rel="stylesheet" href="{{ path_to_root }}FontAwesome/css/font-awesome.css"> |
| 36 | + <link rel="stylesheet" href="{{ resource "FontAwesome/css/font-awesome.css" }}"> |
37 | 37 | {{#if copy_fonts}}
|
38 |
| - <link rel="stylesheet" href="{{ path_to_root }}fonts/fonts.css"> |
| 38 | + <link rel="stylesheet" href="{{ resource "fonts/fonts.css" }}"> |
39 | 39 | {{/if}}
|
40 | 40 |
|
41 | 41 | <!-- Highlight.js Stylesheets -->
|
42 |
| - <link rel="stylesheet" href="{{ path_to_root }}highlight.css"> |
43 |
| - <link rel="stylesheet" href="{{ path_to_root }}tomorrow-night.css"> |
44 |
| - <link rel="stylesheet" href="{{ path_to_root }}ayu-highlight.css"> |
| 42 | + <link rel="stylesheet" id="highlight-css" href="{{ resource "highlight.css" }}"> |
| 43 | + <link rel="stylesheet" id="tomorrow-night-css" href="{{ resource "tomorrow-night.css" }}"> |
| 44 | + <link rel="stylesheet" id="ayu-highlight-css" href="{{ resource "ayu-highlight.css" }}"> |
45 | 45 |
|
46 | 46 | <!-- Custom theme stylesheets -->
|
47 | 47 | {{#each additional_css}}
|
48 |
| - <link rel="stylesheet" href="{{ ../path_to_root }}{{ this }}"> |
| 48 | + <link rel="stylesheet" href="{{ resource this }}"> |
49 | 49 | {{/each}}
|
50 | 50 |
|
51 | 51 | {{#if mathjax_support}}
|
|
59 | 59 | var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
|
60 | 60 | </script>
|
61 | 61 | <!-- Start loading toc.js asap -->
|
62 |
| - <script src="{{ path_to_root }}toc.js"></script> |
| 62 | + <script src="{{ resource "toc.js" }}"></script> |
63 | 63 | </head>
|
64 | 64 | <body>
|
65 | 65 | <div id="body-container">
|
|
189 | 189 | });
|
190 | 190 | </script>
|
191 | 191 |
|
192 |
| - <div id="version" class="version"> |
193 |
| - VERSION-PLACEHOLDER |
194 |
| - </div> |
195 |
| - |
| 192 | +<div id="version" class="version"> |
| 193 | + VERSION-PLACEHOLDER |
| 194 | +</div> |
196 | 195 | <div id="content" class="content">
|
197 | 196 | <main>
|
198 | 197 | {{{ content }}}
|
|
284 | 283 | {{/if}}
|
285 | 284 |
|
286 | 285 | {{#if playground_js}}
|
287 |
| - <script src="{{ path_to_root }}ace.js"></script> |
288 |
| - <script src="{{ path_to_root }}editor.js"></script> |
289 |
| - <script src="{{ path_to_root }}mode-rust.js"></script> |
290 |
| - <script src="{{ path_to_root }}theme-dawn.js"></script> |
291 |
| - <script src="{{ path_to_root }}theme-tomorrow_night.js"></script> |
| 286 | + <script src="{{ resource "ace.js" }}"></script> |
| 287 | + <script src="{{ resource "editor.js" }}"></script> |
| 288 | + <script src="{{ resource "mode-rust.js" }}"></script> |
| 289 | + <script src="{{ resource "theme-dawn.js" }}"></script> |
| 290 | + <script src="{{ resource "theme-tomorrow_night.js" }}"></script> |
292 | 291 | {{/if}}
|
293 | 292 |
|
294 | 293 | {{#if search_js}}
|
295 |
| - <script src="{{ path_to_root }}elasticlunr.min.js"></script> |
296 |
| - <script src="{{ path_to_root }}mark.min.js"></script> |
297 |
| - <script src="{{ path_to_root }}searcher.js"></script> |
| 294 | + <script src="{{ resource "elasticlunr.min.js" }}"></script> |
| 295 | + <script src="{{ resource "mark.min.js" }}"></script> |
| 296 | + <script src="{{ resource "searcher.js" }}"></script> |
298 | 297 | {{/if}}
|
299 | 298 |
|
300 |
| - <script src="{{ path_to_root }}clipboard.min.js"></script> |
301 |
| - <script src="{{ path_to_root }}highlight.js"></script> |
302 |
| - <script src="{{ path_to_root }}book.js"></script> |
| 299 | + <script src="{{ resource "clipboard.min.js" }}"></script> |
| 300 | + <script src="{{ resource "highlight.js" }}"></script> |
| 301 | + <script src="{{ resource "book.js" }}"></script> |
303 | 302 |
|
304 | 303 | <!-- Custom JS scripts -->
|
305 | 304 | {{#each additional_js}}
|
306 |
| - <script src="{{ ../path_to_root }}{{this}}"></script> |
| 305 | + <script src="{{ resource this}}"></script> |
307 | 306 | {{/each}}
|
308 | 307 |
|
309 | 308 | {{#if is_print}}
|
|
323 | 322 | </script>
|
324 | 323 | {{/if}}
|
325 | 324 | {{/if}}
|
| 325 | + |
326 | 326 | </div>
|
327 | 327 | </body>
|
328 | 328 | </html>
|
0 commit comments