improve seo (breadcrumbs)
parent
7fdfa45f02
commit
9e46ac8a35
|
@ -8,10 +8,13 @@
|
||||||
{{- define "partials/breadcrumb-items.html" -}}
|
{{- define "partials/breadcrumb-items.html" -}}
|
||||||
{{- $items := slice -}}
|
{{- $items := slice -}}
|
||||||
{{- range $index, $page := partial "parents" . -}}
|
{{- range $index, $page := partial "parents" . -}}
|
||||||
|
{{- if eq $index 0 -}}
|
||||||
|
{{- continue -}}
|
||||||
|
{{- end -}}
|
||||||
{{-
|
{{-
|
||||||
$item := dict
|
$item := dict
|
||||||
"@type" "ListItem"
|
"@type" "ListItem"
|
||||||
"position" (add $index 1)
|
"position" $index
|
||||||
"name" $page.Title
|
"name" $page.Title
|
||||||
"item" $page.Permalink
|
"item" $page.Permalink
|
||||||
-}}
|
-}}
|
||||||
|
|
Loading…
Reference in New Issue