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 }}