mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +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 }}
|
{{- $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 }}
|
||||||
|
|
Loading…
Reference in a new issue