{% if not document.property('affiliate')|default(false) and not document.property('hide-breadcrumbs')|default(false)%}
{% do jsConfig().add('breadcrumbs', true) %}
{% set navStartNode = document.getProperty('languageRoot') %}
{% if not navStartNode is instanceof('\\Pimcore\\Model\\Document\\Page') %}
{% set navStartNode = pimcore_document(1) %}
{% endif %}
{% set mainNavigation = pimcore_build_nav({ 'active': document, 'root': navStartNode}) %}
{% if pimcore_placeholder('addBreadcrumb') is not empty %}
{{ addBreadcrumb( mainNavigation, pimcore_placeholder('addBreadcrumb') ) }}
{% endif %}
<nav aria-label="breadcrumb" class="breadcrumb-container {{ styleModifier | default('') }}">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ siteConfig.home }}">{{ 'breadcrumb.start'|trans }}</a></li>
{{ pimcore_nav_renderer('menu').setPartial('Navigation/Partials/breadcrumb.html.twig').render(mainNavigation) | raw }}
</ol>
</nav>
{% else %}
<div class="breadcrumb-container {{ styleModifier | default('') }}"></div>
{% endif %}