hugolib: Fix possible .Content cut
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 8 May 2018 08:10:13 +0000 (10:10 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 8 May 2018 14:52:51 +0000 (16:52 +0200)
commit086ae81a98149de6b220cc7e2f155d15f0bc17e3
tree3784e998e8fa52bae70e3c5737e3acaf6b865897
parentc2bb62d63eb17e00b692b56f0ef2abf7db6009cf
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
hugolib/hugo_sites.go
hugolib/hugo_sites_build.go
hugolib/hugo_sites_build_test.go
hugolib/page.go
hugolib/page_output.go
hugolib/pagination_test.go
hugolib/site_render.go
hugolib/testhelpers_test.go