This commit is contained in:
rustdesk
2026-03-20 18:42:55 +08:00
parent 1736869d5f
commit 56cfd26e35
463 changed files with 6538 additions and 62 deletions

View File

@@ -0,0 +1,26 @@
{{- $breadcrumb := false -}}
{{- $items := slice -}}
{{- if not .Params.disableBreadcrumb -}}
{{- range $index, $ancestor := .Ancestors.Reverse -}}
{{- $items = $items | append (dict
"@type" "ListItem"
"position" (add $index 1)
"name" $ancestor.Title
"item" $ancestor.Permalink
) -}}
{{- end -}}
{{- $items = $items | append (dict
"@type" "ListItem"
"position" (add (len $items) 1)
"name" .Title
"item" .Permalink
) -}}
{{- if gt (len $items) 1 -}}
{{- $breadcrumb = dict
"@type" "BreadcrumbList"
"@id" (printf "%s#breadcrumb" .Permalink)
"itemListElement" $items
-}}
{{- end -}}
{{- end -}}
{{- return $breadcrumb -}}