diff --git a/layouts/partials/header/breadcrumbs.html b/layouts/partials/header/breadcrumbs.html index 6f4c83b5823891fe004f8132b120b7ede22a6577..b182270489ef9f36a657f119ec47dcce1aab6c3e 100644 --- a/layouts/partials/header/breadcrumbs.html +++ b/layouts/partials/header/breadcrumbs.html @@ -47,18 +47,14 @@ {{- end -}} {{- $title = chomp $title }} <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item{{- if .active }} active{{ end }}"{{- if .active }} aria-current="page"{{ end }}> - {{ if .active -}} - <span itemprop="item"> - {{- else -}} + {{ if not .active -}} <a itemprop="item" href="{{ .page.Permalink }}"> {{- end }} <span itemprop="name">{{- partial "PrepareHTML" $title -}}</span> - <meta itemprop="position" content="{{- .position -}}"> - {{ if .active -}} - </span> - {{- else -}} - </a> + {{ if not .active -}} + </a> {{- end }} + <meta itemprop="position" content="{{- .position -}}"> </li> {{- end -}} {{- end -}} \ No newline at end of file