forked from deepStateMirrors/tabi
🐛 fix: allow for relative paths everywhere
Allows hosting the page on subdirectories.
This commit is contained in:
parent
1c69169ef0
commit
049df81d6c
4 changed files with 9 additions and 9 deletions
|
@ -8,14 +8,14 @@
|
|||
<div class="nav-navs">
|
||||
<div>
|
||||
{% for menu in config.extra.menu %}
|
||||
<a class="nav-links" href={{ menu.url }}>{{ menu.name }}</a>
|
||||
<a class="nav-links" href={{ menu.url | safe | replace(from="$BASE_URL", to=config.base_url) }}>{{ menu.name }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<label class="theme-switcher" for="themeswitch">
|
||||
<input type="checkbox" id="themeswitch">
|
||||
<div class="switch">
|
||||
<img alt="set dark theme" class="moon" src="/menu_icon/moon.png">
|
||||
<img alt="set light theme" class="sun" src="/menu_icon/sun.png">
|
||||
<img alt="set dark theme" class="moon" src="{{ config.base_url }}/menu_icon/moon.png">
|
||||
<img alt="set light theme" class="sun" src="{{config.base_url}}/menu_icon/sun.png">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue