menu: current lang indicator

This commit is contained in:
He4eT 2025-04-20 06:27:11 +02:00
commit 93fad3628b
2 changed files with 10 additions and 1 deletions

View file

@ -51,7 +51,12 @@
{% else %}
{% set lang_href = page.url | locale_url(lang) %}
{% endif %}
<a href="{{ lang_href }}">{{ lang }}</a>
<a
class="{% if lang === page.lang %} active {% endif %}"
href="{{ lang_href }}"
>
{{ lang }}
</a>
</li>
{%- endfor %}
</ul>