✨ feat: make JS light/dark toggle optional
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user