mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
nav: fix breadcrumbs for deeply nested sections #442
This commit is contained in:
parent
6bfcf53221
commit
8e7bbf473e
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@
|
|||
{{- $page := .page }}
|
||||
{{- $to := .to }}
|
||||
{{- $breadcrumb = $breadcrumb | append $to }}
|
||||
{{- range seq (len .to.Site.Home.Pages) }}
|
||||
{{- range seq (len .to.Site.AllPages) }}
|
||||
{{- $to = $to.Parent }}
|
||||
{{- if $to }}
|
||||
{{- $breadcrumb = $breadcrumb | append $to }}
|
||||
|
|
Loading…
Reference in a new issue