hugolib: Prepare render per output format

See #3220
This commit is contained in:
Bjørn Erik Pedersen
2017-05-05 09:24:37 +02:00
parent 1e4d082cf5
commit 2bcbf10400
4 changed files with 50 additions and 34 deletions

View File

@@ -492,7 +492,13 @@ func (h *HugoSites) setupTranslations() {
}
}
func (s *Site) preparePagesForRender(cfg *BuildCfg) {
func (s *Site) preparePagesForRender(outFormatIdx int, cfg *BuildCfg) {
if outFormatIdx > 0 {
// TODO(bep) for now
return
}
pageChan := make(chan *Page)
wg := &sync.WaitGroup{}
numWorkers := getGoMaxProcs() * 4