Fix mainSections logic

Fixes #6217
This commit is contained in:
Bjørn Erik Pedersen
2019-08-15 12:11:49 +02:00
parent 952a319496
commit 67524c9936
2 changed files with 58 additions and 1 deletions

View File

@@ -441,7 +441,7 @@ func (c *PageCollections) createWorkAllPages() error {
if parentBucket != nil {
if !mainSectionsFound && strings.Count(s, "/") == 1 {
if !mainSectionsFound && strings.Count(s, "/") == 1 && bucket.owner.IsSection() {
// Root section
rootBuckets = append(rootBuckets, bucket)
}