Remove full "index.html", not just the extension

This commit is contained in:
Pk11 2021-01-03 00:40:44 -06:00
parent c6a2340158
commit 84d407da86

View File

@ -31,7 +31,7 @@ layout: compress
<!-- First do the index --> <!-- First do the index -->
{% for item in items %} {% for item in items %}
{% if item.url contains "index.html" %} {% if item.url contains "index.html" %}
<li class="li-bullet {% if page.title == item.title %}fw-bold{% endif %}"><a href="{{ item.url | remove: ".html" }}">{{ item.title }}</a></li> <li class="li-bullet {% if page.title == item.title %}fw-bold{% endif %}"><a href="{{ item.url | remove: "index.html" }}">{{ item.title }}</a></li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<!-- Then the pages not in categories --> <!-- Then the pages not in categories -->