hugolib: Speed up URL handling

This commit is contained in:
Bjørn Erik Pedersen
2017-03-17 16:35:09 +01:00
parent a49bf8707b
commit df95383914
7 changed files with 56 additions and 25 deletions

View File

@@ -179,6 +179,12 @@ func (h *HugoSites) assemble(config *BuildCfg) error {
if len(p.outputFormats) == 0 {
p.outputFormats = s.defaultOutputDefinitions.ForKind(p.Kind)
}
if err := p.initTargetPathDescriptor(); err != nil {
return err
}
if err := p.initURLs(); err != nil {
return err
}
}
s.assembleMenus()
s.refreshPageCaches()