feat: make JS light/dark toggle optional

This commit is contained in:
welpo
2023-04-15 00:42:27 +02:00
parent d98c0d0bb8
commit 1803987555
2 changed files with 7 additions and 0 deletions

View File

@@ -12,12 +12,14 @@
}}</a>
{% endfor %}
</div>
{%- if config.extra.theme_switcher == true -%}
<label class="theme-switcher" for="themeswitch">
<input type="checkbox" id="themeswitch">
<div class="switch">
<img alt="set dark theme" class="moon" src="{{ config.base_url }}/menu_icon/moon.svg">
<img alt="set light theme" class="sun" src="{{ config.base_url }}/menu_icon/sun.svg">
</div>
{%- endif -%}
</label>
</div>
{% endif %}