{# Usage : {% include 'components/breadcrumb.html.twig' with { items: [{name, url}, {name}] } %} #} {% if items is defined and items|length > 1 %} {% for item in items %} {% if not loop.last and item.url is defined %} {{ item.name }} / {% else %} {{ item.name }} {% endif %} {% endfor %} {{ json_ld(jsonld_breadcrumb(items)) }} {% endif %}