mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
Don't include the index in index.html links
This commit is contained in:
parent
68589b8cca
commit
34f88608ac
@ -47,7 +47,7 @@
|
||||
{% for item in site[collection.label] %}
|
||||
{% assign itemRef = item.url | split: item.lang | last %}
|
||||
{% if itemRef == ref %}
|
||||
<li><a class="dropdown-item{% if item.lang == page.collection %} active{% endif %}" data-language-id="{{ item.lang }}" href="{{ item.url | 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 %}" 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>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endunless %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user