init theme toggle

This commit is contained in:
gws 2024-11-08 12:53:41 +01:00
parent 653185b60f
commit e28058040c
3 changed files with 50 additions and 3 deletions

View file

@ -33,9 +33,10 @@
{% endfor %}
{% if lang == "en"%}
<a class="nav-item subtitle-text" href="/sv{{ path }}"><img class="flag" src="/flag-for-sweden-svgrepo-com.svg"></a>
<a class="nav-item subtitle-text" href="/sv{{ path }}"><img alt="swedish" class="flag"
src="/flag-for-sweden-svgrepo-com.svg"></a>
{% else %}
<a class="nav-item subtitle-text" href="{{ path }}"><img class="flag"
<a class="nav-item subtitle-text" href="{{ path }}"><img alt="english" class="flag"
src="/flag-for-united-kingdom-svgrepo-com.svg"></a>
{% endif %}