mirror of
https://github.com/He4eT/xecut-site.git
synced 2026-05-05 01:47:25 +00:00
menu: current lang indicator
This commit is contained in:
parent
b785b6b4a8
commit
e01227237b
2 changed files with 10 additions and 1 deletions
|
|
@ -176,3 +176,7 @@ header.menu .nav-langs .lang-separator {
|
|||
header.menu .nav-langs .lang-separator:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
header.menu .nav-langs a.active {
|
||||
border-color: var(--color-fg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue