hugolib: Fix PrevInSection/NextInSection for nested sections
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 1 May 2019 15:51:03 +0000 (17:51 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 1 May 2019 17:34:28 +0000 (19:34 +0200)
commitbcbed4ebdaf55b67abc521d69bba456c041a7e7d
treec99e705bb31267b26ef8206144526af7fffb8318
parent009076e5ee88fc46c95a9afd34f82f9386aa282a
hugolib: Fix PrevInSection/NextInSection for nested sections

This was broken in Hugo 0.55.0.

Fixes #5883
hugolib/site.go
hugolib/site_sections_test.go