summaryrefslogtreecommitdiffstats
path: root/hugolib/hugo_sites_build.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-08 10:10:13 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-05-08 16:52:51 +0200
commit086ae81a98149de6b220cc7e2f155d15f0bc17e3 (patch)
tree3784e998e8fa52bae70e3c5737e3acaf6b865897 /hugolib/hugo_sites_build.go
parentc2bb62d63eb17e00b692b56f0ef2abf7db6009cf (diff)
hugolib: Fix possible .Content cut
There have been one report of a site with truncated `.Content` after the Hugo `0.40.1` release. This commit fixes this so that race should not be possible anymore. It also adds a stress test with focus on content rendering and multiple output formats. Fixes #4706
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r--hugolib/hugo_sites_build.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index 0421c7925..e1e4a6056 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -234,7 +234,9 @@ func (h *HugoSites) render(config *BuildCfg) error {
isRenderingSite := s == s2
- s2.preparePagesForRender(isRenderingSite && i == 0)
+ if err := s2.preparePagesForRender(isRenderingSite && i == 0); err != nil {
+ return err
+ }
}