mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
hugolib: Fix PrevInSection/NextInSection for nested sections
This was broken in Hugo 0.55.0. Fixes #5883
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user