{% if pages is not empty %}
	<ul class="breadcrumb" itemscope itemtype="https://schema.org/BreadcrumbList">
		<li class="breadcrumb-item">
			<a href="/">{{ pimcore_document(1).getTitle() }}</a>
		</li>
		{% for key, page in pages %}
			{% if key < (pages|length - 1) %}
				<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
					<a itemprop="item" href="{{ page.getUri() }}" title="{{ page.getLabel() }}" target="_self">
						<span itemprop="name">
							{{ page.getLabel() }}
						</span>
						<meta itemprop="position" content="{{ key + 1 }}">
					</a>
				</li>
			{% else %}
				<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
					<span itemprop="name">
						{{ page.getLabel() }}
					</span>
					<meta itemprop="position" content="{{ key + 1 }}">
				</li>
			{% endif %}
		{% endfor %}
	</ul>
{% endif %}
