Update to breadcrumbs

This commit is contained in:
hiro 2019-09-12 18:00:16 +02:00
parent d88cb21926
commit 2a33ca6a54

View File

@ -3,17 +3,8 @@
{% if item.parent %}
{% for _ in range(1, 5) %}
{% set parent = item.parent %}
{% if parent %}
{% if parent.path == "/" %}
{# break #}
{% else %}
<li class="breadcrumb-item active" aria-current="page">
<a href="{{ parent.path|url }}">
{{ parent.title }}
</a>
</li>
{% endif %}
{% endif %}
{{ parent }}
{{ item }}
{% set item = item.parent %}
{% endfor %}
{% endif %}