mirror of
https://github.com/rvtr/wiki.git
synced 2025-06-19 03:25:40 -04:00
Fix language dropdown not correctly setting lang
This commit is contained in:
parent
c861048b22
commit
e29412a94d
@ -43,7 +43,7 @@
|
|||||||
{% for item in site[collection.label] %}
|
{% for item in site[collection.label] %}
|
||||||
{% assign itemRef = item.url | split: item.lang | last %}
|
{% assign itemRef = item.url | split: item.lang | last %}
|
||||||
{% if itemRef == ref %}
|
{% if itemRef == ref %}
|
||||||
<li><a class="dropdown-item{% if item.lang == page.collection %} active{% endif %}" data-language-id="{{ item.lang }}" href="{{ item.url | remove: "index.html" | remove: ".html" }}" dir="{% if site.data.rtl contains item.collection %}rtl{%else%}ltr{% endif %}">{{ site.data.lang-names[item.lang] }}</a></li>
|
<li><a class="dropdown-item{% if item.lang == page.collection %} active{% endif %}" lang="{{ item.lang }}" href="{{ item.url | remove: "index.html" | remove: ".html" }}" dir="{% if site.data.rtl contains item.collection %}rtl{%else%}ltr{% endif %}">{{ site.data.lang-names[item.lang] }}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
|
Loading…
Reference in New Issue
Block a user