Hello together,
I created a breadcrumb navigation using Microdata. Everything works fine except the content number for itemprop=“position” looks like this:
Start 1 → level 1 → level 2
Can someone please help me and tell me how to do this correctly?
<nav class="d-none d-md-block container" aria-label="breadcrumb">
<ol itemscope itemtype="https://schema.org/BreadcrumbList" class="breadcrumb">
<?php foreach($site->breadcrumb() as $crumb): ?>
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item<?php e($crumb->isActive(), ' active') ?>">
<a itemprop="item" href="<?php echo $crumb->url() ?>" title="<?php echo kirbytextinline($crumb->title()) ?>">
<span itemprop="name"><?php echo kirbytextinline($crumb->title()) ?></span>
<meta itemprop="position" content="<?php echo $crumb->depth() ?>">
</a>
</li>
<?php endforeach ?>
</ol>
</nav>