mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
Fix language list
This commit is contained in:
parent
25bd9c9b38
commit
8383bf1577
@ -42,8 +42,10 @@
|
||||
{% assign path = page.path | replace: page.collection, collection.label %}
|
||||
{% assign item = site[collection.label] | where: "path", path | first %}
|
||||
{% if item %}
|
||||
{% if item.lang != "en-US" or item.collection == "en-US" %}
|
||||
<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 %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
<li><hr class="dropdown-divider"></li>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user