summaryrefslogtreecommitdiffstats
path: root/hugolib/pagecollections.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-15 12:11:49 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-15 20:21:57 +0200
commit67524c993623871626f0f22e6a2ac705a816a959 (patch)
tree17f18f6990461669ceed88bfacde353d32acca2f /hugolib/pagecollections.go
parent952a3194962dd91f87e5bd227a1591b00c39ff05 (diff)
Fix mainSections logic
Fixes #6217
Diffstat (limited to 'hugolib/pagecollections.go')
-rw-r--r--hugolib/pagecollections.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pagecollections.go b/hugolib/pagecollections.go
index 01a194ac1..4711d3de3 100644
--- a/hugolib/pagecollections.go
+++ b/hugolib/pagecollections.go
@@ -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)
}