summaryrefslogtreecommitdiffstats
path: root/hugolib/content_map_page.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r--hugolib/content_map_page.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go
index f20a30abe..764078623 100644
--- a/hugolib/content_map_page.go
+++ b/hugolib/content_map_page.go
@@ -1814,6 +1814,14 @@ func (sa *sitePagesAssembler) addMissingRootSections() error {
return false, nil
}
+ switch ps.Kind() {
+ case kinds.KindPage, kinds.KindSection:
+ // OK
+ default:
+ // Skip taxonomy nodes etc.
+ return false, nil
+ }
+
p := ps.m.pathInfo
section := p.Section()
if section == "" || seen[section] {