{# @see https://preview.tabler.io/docs/breadcrumb.html #}
{% macro breadcrumb(breadcrumbs, type = 'bullets') %}
    {% set type = type|default('bullets') %}
    <ol class="breadcrumb breadcrumb-{{ type }}" aria-label="breadcrumbs">
        {% for name, href in breadcrumbs %}
            <li class="breadcrumb-item{% if loop.last %} active" aria-current="page{% endif %}"><a href="{{ href }}">{{ name }}</a></li>
        {% endfor %}
    </ol>
{% endmacro %}
