Don't include the index in index.html links

This commit is contained in:
Pk11 2021-02-13 21:45:57 -06:00
parent 68589b8cca
commit 34f88608ac

View File

@ -47,7 +47,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: ".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 %} {% endif %}
{% endfor %} {% endfor %}
{% endunless %} {% endunless %}