mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -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] {
|
||||
|
Reference in New Issue
Block a user