summaryrefslogtreecommitdiffstats
path: root/hugolib/site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-05-01 17:51:03 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-05-01 19:34:28 +0200
commitbcbed4ebdaf55b67abc521d69bba456c041a7e7d (patch)
treec99e705bb31267b26ef8206144526af7fffb8318 /hugolib/site.go
parent009076e5ee88fc46c95a9afd34f82f9386aa282a (diff)
hugolib: Fix PrevInSection/NextInSection for nested sections
This was broken in Hugo 0.55.0. Fixes #5883
Diffstat (limited to 'hugolib/site.go')
-rw-r--r--hugolib/site.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 495225093..7cc80e22f 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -220,7 +220,7 @@ func (s *Site) prepareInits() {
if p1.IsPage() && p1.Section() == "" {
rootSection = append(rootSection, i)
}
- if p1.IsSection() && len(p1.SectionsEntries()) <= 1 {
+ if p1.IsSection() {
sectionPages := p1.Pages()
for i, p2 := range sectionPages {
p2s := p2.(*pageState)