Fix panic when home page is drafted

Fixes #6927
This commit is contained in:
Bjørn Erik Pedersen
2020-02-22 18:22:40 +01:00
parent ca68abf0bc
commit 0bd6356c6d
2 changed files with 50 additions and 0 deletions

View File

@@ -719,6 +719,12 @@ func (m *pageMaps) AssemblePages() error {
return err
}
if pm.s.home == nil {
// Home is disabled, everything is.
pm.bundleTrees.DeletePrefix("")
return nil
}
if err := pm.assembleTaxonomies(); err != nil {
return err
}