hugolib: Re-work "fast render" logic in the new flow

Note that this fixes some "live reload" issues recently introduced in non-released code.

Closes #5811
See #5784
This commit is contained in:
Bjørn Erik Pedersen
2019-04-04 12:37:55 +02:00
parent 4494a01b79
commit d0d661dffd
3 changed files with 9 additions and 7 deletions

View File

@@ -288,10 +288,8 @@ func (h *HugoSites) render(config *BuildCfg) error {
// needs this set.
s2.rc = &siteRenderingContext{Format: renderFormat}
if !config.PartialReRender {
if err := s2.preparePagesForRender(siteRenderContext.sitesOutIdx); err != nil {
return err
}
if err := s2.preparePagesForRender(siteRenderContext.sitesOutIdx); err != nil {
return err
}
}