Skip to content

Commit 9e46ac8

Browse files
committed
improve seo (breadcrumbs)
1 parent 7fdfa45 commit 9e46ac8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

themes/tfsci/layouts/partials/head/jsonld.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
{{- define "partials/breadcrumb-items.html" -}}
99
{{- $items := slice -}}
1010
{{- range $index, $page := partial "parents" . -}}
11+
{{- if eq $index 0 -}}
12+
{{- continue -}}
13+
{{- end -}}
1114
{{-
1215
$item := dict
1316
"@type" "ListItem"
14-
"position" (add $index 1)
17+
"position" $index
1518
"name" $page.Title
1619
"item" $page.Permalink
1720
-}}

0 commit comments

Comments
 (0)