From 8e7bbf473e2c47678dce4d3d17953dd86b077829 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 25 Jan 2023 11:07:58 +0100 Subject: [PATCH] nav: fix breadcrumbs for deeply nested sections #442 --- layouts/partials/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 28941fcd9d..e4f188b4f8 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -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 }}