hugolib: Fix section logic for root folders with subfolders
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Jun 2017 09:26:17 +0000 (11:26 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 13 Jun 2017 10:41:50 +0000 (12:41 +0200)
commita30023f5cbafd06034807255181a5b7b17f3c25f
tree9ac02e1132df8dffabe22adf054a7e04a3c8e0d6
parent1f26420d392a5ab4c7b7fe1911c0268b45d01ab8
hugolib: Fix section logic for root folders with subfolders

This commit fixes an issue introduced in the recently released Hugo 0.22.

This logic did not handle the case with root sections with non-section subfolders very well.

Fixes #3586
hugolib/site_sections.go
hugolib/site_sections_test.go