{% set breadcrumb = app_getBreadcrumb( pages )|default([]) %}
{% if breadcrumb is not empty %}
{% set lastItem = (breadcrumb|length) - 1 %}
{% for index,item in breadcrumb %}
{% if index == lastItem %}
<li class="breadcrumb-item active">{{ item['label'] }}</li>
{% else %}
<li class="breadcrumb-item"><a href="{{ item['uri'] }}" target="{{ item['target'] }}">{{ item['label'] }}</a></li>
{% endif %}
{% endfor %}
{% endif %}