{# Branches > Voedingsindustrie > item 3 > current #}
{# get root node if there is no document defined (for pages which are routed directly through static route) #}
<div class="relative lg:container">
<div
class="{{ hideOnMobile is defined and hideOnMobile is true ? 'hidden md:block' : '' }} lg:absolute lg:left-0 lg:z-10"
>
<div class="container hidden py-4 mx-auto text-sm font-bold text-gray-800 md:text-base lg:block ">
<ul class="flex flex-row items-center">
{% for breadCrumb in page.breadCrumbs %}
{% if breadCrumb.item|default(null) %}
<li class="flex flex-row items-center">
{% if loop.first %}
<a href="{{ breadCrumb.item | trimUrl }}">
<svg class="relative -top-[1px]" xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#8A8D94" fill-rule="evenodd" d="M13.80032 14.39996h-3.20008V9.59984H5.80012v4.80012H2.60004V5.99974999l5.60014-4.200105 5.60014 4.200105V14.39996Zm1.280032-9.44023601-6.40016-4.80012c-.2840071-.21280532-.6760169-.21280532-.960024 0l-6.40016 4.80012C1.11840296 5.11092777 1 5.34773369 1 5.59973999V15.19998c0 .4424111.35840896.80002.80002.80002h12.80032c.4424111 0 .80002-.3576089.80002-.80002V5.59973999c0-.2520063-.118403-.48881222-.320008-.640016Z"/></svg>
</a>
{% elseif breadCrumb.item %}
<a href="{{ breadCrumb.item | trimUrl }}" class="first-letter:capitalize">
{% if breadCrumb.name ends with ' | Coolworld' %}
{{ breadCrumb.name|slice(0, -12) }}
{% else %}
{{ breadCrumb.name }}
{% endif %}
</a>
{% else %}
<span class="first-letter:capitalize">{{ breadCrumb.name }}</span>
{% endif %}
{% if not loop.last %}
<svg class="rotate-180 mx-2.5" width="0.858em" height="0.858em" fill="currentColor" viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M7.685.344.722 7.075C.474 7.315.333 7.65.333 8c0 .35.14.685.389.925l6.963 6.732a1.206 1.206 0 0 0 1.749-.068l.09-.113a1.297 1.297 0 0 0-.154-1.67L3.36 8 9.37 2.193A1.295 1.295 0 0 0 9.434.41 1.205 1.205 0 0 0 7.685.344Z"/></svg>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% for breadCrumb in page.breadCrumbs | reverse %}
{# Skip the fist (last originally because reversed) because that's the current page. #}
{# Make sure the parent is a page, not a folder using breadCrumb.item. #}
{#{% if document.parent and document.parent is instanceof('\\Pimcore\\Model\\Document\\Page') %}#}
{% if not loop.first and breadCrumb.item %}
<!-- The previous button for on mobile -->
<a
{#href="{{ document.parent.path | trimUrl }}"#}
href="{{ breadCrumb.item | trimUrl }}"
class="flex items-center h-full px-5 py-2 text-sm font-bold text-gray-800 md:py-3 lg:hidden md:text-base"
>
<span class="block w-2.5 h-4 mr-4">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 16"><path fill="#8A8D94" fill-rule="evenodd" d="M7.685.344.722 7.075C.474 7.315.333 7.65.333 8c0 .35.14.685.389.925l6.963 6.732a1.206 1.206 0 0 0 1.749-.068l.09-.113a1.297 1.297 0 0 0-.154-1.67L3.36 8 9.37 2.193A1.295 1.295 0 0 0 9.434.41 1.205 1.205 0 0 0 7.685.344Z"/></svg>
</span>
<span>
{#{{ document.parent.getProperty('navigation_name') ?: document.parent.title ?: document.parent.key }}#}
{{ breadCrumb.name}}
</span>
</a>
{% break %}
{% endif %}
{% endfor %}
</div>
</div>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{% for breadCrumb in page.breadCrumbs %}
{
"@type": "ListItem",
"position": {{ loop.index }},
"name": "{{ breadCrumb.name }}"{% if breadCrumb.item %},{% endif %}
{% if breadCrumb.item %}
"item": "{{ breadCrumb.item }}"
{% endif %}
}{% if not loop.last %},{% endif %}
{% endfor %}
]
}
</script>