<ol class="crumbs" itemscope itemtype="https://schema.org/BreadcrumbList">
{{- /* declare a 'variable' to store the each link position */}}
{{- $data := newScratch }}
<ol class="crumbs" itemscope itemtype="https://schema.org/BreadcrumbList">
{{- /* declare a 'variable' to store the each link position */}}
{{- $data := newScratch }}
{{- range $index, $value := .Ancestors.Reverse }}
<li class="crumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
{{- /* read the index from loop and add 'one', because it starts counting from zero */}}
{{- range $index, $value := .Ancestors.Reverse }}
<li class="crumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
{{- /* read the index from loop and add 'one', because it starts counting from zero */}}
</a>
{{- /* pass the counter value into schema attribute */}}
<meta itemprop="position" content='{{ $data.Get "counter"}}' />
</a>
{{- /* pass the counter value into schema attribute */}}
<meta itemprop="position" content='{{ $data.Get "counter"}}' />