diff --git a/layout/_partials/page/breadcrumb.swig b/layout/_partials/page/breadcrumb.swig index d6f5a29139..e550a3a24c 100644 --- a/layout/_partials/page/breadcrumb.swig +++ b/layout/_partials/page/breadcrumb.swig @@ -7,7 +7,7 @@ {% for path in paths %} {% set current += 1 %} {% if path != 'index.html' %} - {% if current == count - 1 %} + {% if current == count - 1 and paths[count - 1] == 'index.html' %}
  • {{ path | upper }}
  • {% else %} {% if link == '' %} @@ -15,7 +15,11 @@ {% else %} {% set link += '/' + path %} {% endif %} -
  • {{ path | upper }}
  • + {% if path.indexOf('.html') == -1 %} +
  • {{ path | upper }}
  • + {% else %} +
  • {{ path.replace('.html', '') | upper }}
  • + {% endif %} {% endif %} {% endif %} {% endfor %}