|
7 | 7 | <title>{{ page.title }}{% block title_content %}{% endblock %}</title> |
8 | 8 | {% match theme %} |
9 | 9 | {% when Some with (Theme::Dark) %} |
10 | | - <link rel="stylesheet" href="{{ page.assets.css.dark.route() }}"> |
| 10 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.dark.route() }}"> |
11 | 11 | {% when Some with (Theme::Light) %} |
12 | | - <link rel="stylesheet" href="{{ page.assets.css.light.route() }}"> |
| 12 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.light.route() }}"> |
13 | 13 | {% when Some with (Theme::System) %} |
14 | | - <link rel="stylesheet" href="{{ page.assets.css.dark.route() }}" media="(prefers-color-scheme: dark)"> |
15 | | - <link rel="stylesheet" href="{{ page.assets.css.light.route() }}" media="(prefers-color-scheme: light)"> |
| 14 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.dark.route() }}" media="(prefers-color-scheme: dark)"> |
| 15 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.light.route() }}" media="(prefers-color-scheme: light)"> |
16 | 16 | {% when None %} |
17 | | - <link rel="stylesheet" href="{{ page.assets.css.dark.route() }}" media="(prefers-color-scheme: dark)"> |
18 | | - <link rel="stylesheet" href="{{ page.assets.css.light.route() }}" media="(prefers-color-scheme: light)"> |
| 17 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.dark.route() }}" media="(prefers-color-scheme: dark)"> |
| 18 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.light.route() }}" media="(prefers-color-scheme: light)"> |
19 | 19 | {% endmatch %} |
20 | | - <link rel="stylesheet" href="{{ page.assets.css.style.route() }}"> |
21 | | - <link rel="icon" href="{{ page.assets.favicon.route() }}" type="image/png"> |
| 20 | + <link rel="stylesheet" href="{{ path_prefix }}{{ page.assets.css.style.route() }}"> |
| 21 | + <link rel="icon" href="{{ path_prefix }}{{ page.assets.favicon.route() }}" type="image/png"> |
22 | 22 | {% block head %}{% endblock %} |
23 | 23 | </head> |
24 | 24 | <body> |
25 | 25 | <div id="main-container"> |
26 | 26 | <header> |
27 | 27 | <div class="nav-group"> |
28 | 28 | <div class="nav-item"> |
29 | | - <a href="/" class="nav-button" title="home" aria-label="home"> |
| 29 | + <a href="{{ path_prefix }}/" class="nav-button" title="home" aria-label="home"> |
30 | 30 | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> |
31 | 31 | <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m4 12 8-8 8 8M6 10.5V19a1 1 0 0 0 1 1h3v-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3h3a1 1 0 0 0 1-1v-8.5"/> |
32 | 32 | </svg> |
|
40 | 40 | {% match theme %} |
41 | 41 | {% when None %} |
42 | 42 | <div class="nav-item" id="dark-switch"> |
43 | | - <a href="/theme?pref=dark" class="nav-button" title="switch to dark" aria-label="switch to dark"> |
| 43 | + <a href="{{ path_prefix }}/theme?pref=dark" class="nav-button" title="switch to dark" aria-label="switch to dark"> |
44 | 44 | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> |
45 | 45 | <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z"/> |
46 | 46 | </svg> |
47 | 47 | </a> |
48 | 48 | </div> |
49 | 49 | {% when Some with (Theme::System) %} |
50 | 50 | <div class="nav-item" id="dark-switch"> |
51 | | - <a href="/theme?pref=dark" class="nav-button" title="switch to dark" aria-label="switch to dark"> |
| 51 | + <a href="{{ path_prefix }}/theme?pref=dark" class="nav-button" title="switch to dark" aria-label="switch to dark"> |
52 | 52 | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> |
53 | 53 | <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 1-.5-17.986V3c-.354.966-.5 1.911-.5 3a9 9 0 0 0 9 9c.239 0 .254.018.488 0A9.004 9.004 0 0 1 12 21Z"/> |
54 | 54 | </svg> |
55 | 55 | </a> |
56 | 56 | </div> |
57 | 57 | {% when Some with (Theme::Dark) %} |
58 | 58 | <div class="nav-item" id="light-switch"> |
59 | | - <a href="/theme?pref=light" class="nav-button" title="switch to light" aria-label="switch to light"> |
| 59 | + <a href="{{ path_prefix }}/theme?pref=light" class="nav-button" title="switch to light" aria-label="switch to light"> |
60 | 60 | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> |
61 | 61 | <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5V3m0 18v-2M7.05 7.05 5.636 5.636m12.728 12.728L16.95 16.95M5 12H3m18 0h-2M7.05 16.95l-1.414 1.414M18.364 5.636 16.95 7.05M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z"/> |
62 | 62 | </svg> |
63 | 63 | </a> |
64 | 64 | </div> |
65 | 65 | {% when Some with (Theme::Light) %} |
66 | | - <div class="nav-item" id="system-switch"> <a href="/theme?pref=system" class="nav-button" title="switch to system" aria-label="switch to system"> |
| 66 | + <div class="nav-item" id="system-switch"> <a href="{{ path_prefix }}/theme?pref=system" class="nav-button" title="switch to system" aria-label="switch to system"> |
67 | 67 | <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"> |
68 | 68 | <path stroke="currentColor" stroke-linecap="square" stroke-linejoin="round" stroke-width="2" d="M10 19H5a1 1 0 0 1-1-1v-1a3 3 0 0 1 3-3h2m10 1a3 3 0 0 1-3 3m3-3a3 3 0 0 0-3-3m3 3h1m-4 3a3 3 0 0 1-3-3m3 3v1m-3-4a3 3 0 0 1 3-3m-3 3h-1m4-3v-1m-2.121 1.879-.707-.707m5.656 5.656-.707-.707m-4.242 0-.707.707m5.656-5.656-.707.707M12 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/> |
69 | 69 | </svg> |
|
0 commit comments