mirror of
https://github.com/He4eT/xecut-site.git
synced 2026-05-05 01:47:25 +00:00
menu: add monolingual pages support
This commit is contained in:
parent
185a8d9e05
commit
9383e32d2c
1 changed files with 6 additions and 3 deletions
|
|
@ -36,9 +36,12 @@
|
|||
{%- for lang in langs %}
|
||||
<li class="lang-separator" aria-hidden>|</li>
|
||||
<li>
|
||||
<a href="{{ page.url | locale_url(lang) }}">
|
||||
{{ lang }}
|
||||
</a>
|
||||
{% if monolingual %}
|
||||
{% set lang_href = '/' | locale_url(lang) %}
|
||||
{% else %}
|
||||
{% set lang_href = page.url | locale_url(lang) %}
|
||||
{% endif %}
|
||||
<a href="{{ lang_href }}">{{ lang }}</a>
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue