{% sw_extends '@Storefront/storefront/layout/breadcrumb.html.twig' %}
{% block layout_breadcrumb_list %}
<ol class="breadcrumb"
itemscope
itemtype="https://schema.org/BreadcrumbList">
{# ... add home link #}
{% if theme_config('zen-breadcrumbs-home-enabled') %}
{% set homeLabel = context.salesChannel.translated.homeName|default("general.homeLink"|trans) %}
<li class="breadcrumb-item home-link"
itemprop="itemListElement"
itemscope
itemtype="https://schema.org/ListItem">
<a href="{{ path('frontend.home.page') }}"
class="breadcrumb-link{% if controllerAction is same as('home') %} is-active{% endif %}"
title="{{ homeLabel|striptags }}"
itemprop="item">
<link itemprop="url"
href="{{ path('frontend.home.page') }}"/>
<span class="breadcrumb-title" itemprop="name">{{ homeLabel|sw_sanitize }}</span>
</a>
<meta itemprop="position" content="0"/>
</li>
{{ block('layout_breadcrumb_placeholder') }}
{% endif %}
{% for breadcrumbCategory in breadcrumbCategories %}
{% set key = breadcrumbCategory.id %}
{% set name = breadcrumbCategory.translated.name %}
{{ block('layout_breadcrumb_list_item') }}
{{ block('layout_breadcrumb_placeholder') }}
{% endfor %}
</ol>
{% endblock %}