mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
hugolib: Speed up URL handling
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user