improve seo (breadcrumbs)

pull/2/head
Septs 2022-11-30 11:44:17 +08:00
parent 7fdfa45f02
commit 9e46ac8a35
No known key found for this signature in database
GPG Key ID: 65144037AFA516E1
1 changed files with 4 additions and 1 deletions

View File

@ -8,10 +8,13 @@
{{- define "partials/breadcrumb-items.html" -}}
{{- $items := slice -}}
{{- range $index, $page := partial "parents" . -}}
{{- if eq $index 0 -}}
{{- continue -}}
{{- end -}}
{{-
$item := dict
"@type" "ListItem"
"position" (add $index 1)
"position" $index
"name" $page.Title
"item" $page.Permalink
-}}