nav: fix breadcrumbs for deeply nested sections #442

This commit is contained in:
Sören Weber 2023-01-25 11:07:58 +01:00
parent 6bfcf53221
commit 8e7bbf473e
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -134,7 +134,7 @@
{{- $page := .page }} {{- $page := .page }}
{{- $to := .to }} {{- $to := .to }}
{{- $breadcrumb = $breadcrumb | append $to }} {{- $breadcrumb = $breadcrumb | append $to }}
{{- range seq (len .to.Site.Home.Pages) }} {{- range seq (len .to.Site.AllPages) }}
{{- $to = $to.Parent }} {{- $to = $to.Parent }}
{{- if $to }} {{- if $to }}
{{- $breadcrumb = $breadcrumb | append $to }} {{- $breadcrumb = $breadcrumb | append $to }}