Add language switcher

It's a bit WET but hey, better than nothing I guess
This commit is contained in:
daudix
2024-06-16 05:59:33 +03:00
parent 88cf05a654
commit f7dcab6c1d
3 changed files with 94 additions and 11 deletions

View File

@ -44,6 +44,23 @@
</li>
{%- endif %}
{% endfor %}
{% if config.extra.nav.langs %}
<li id="dropdown">
<details>
<summary>
<i class="icon"></i>
<span>Languages</span>
</summary>
<ul>
{% for language in config.extra.nav.langs %}
<li>
<a href="{{ get_url(path="/", lang=language.code) }}">{{ language.name }}</a>
</li>
{% endfor %}
</ul>
</details>
</li>
{% endif %}
{% if config.generate_feed and config.extra.nav.show_feed %}
<li id="feed">
<a href="{{ get_url(path=config.feed_filename) }}">