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>
Wed, 9 May 2018 07:07:30 +0000 (09:07 +0200)
commit90d0d83097a20a3f521ffc1f5a54a2fbfaf14ce2
tree019ae3e78e35a9dc5c1d1c8d82efa90fc7fd7ef9
parent5a9d1324d88a0ed03f6a58f8aa447761b3fd20f0
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