aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-04-04 12:37:55 +0200
committerBjørn Erik Pedersen <[email protected]>2019-04-04 13:51:22 +0200
commitd0d661dffd19d5ed6efbd4dd2c572bad008bd859 (patch)
treeb8ef86a426e3b3111c0430374f62991bc2dc35b8 /hugolib/hugo_sites_build.go
parent4494a01b794ab785c64c8e93c61ccbfa845bc478 (diff)
downloadhugo-d0d661dffd19d5ed6efbd4dd2c572bad008bd859.tar.gz
hugo-d0d661dffd19d5ed6efbd4dd2c572bad008bd859.zip
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
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 214f72c5f..91dfb9a37 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -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
}
}