hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit dc4226a8b27e03e31068fc945daab885d3819d04
parent bf5f10faa9fd445c4dd21839aa7d73cd2acbfb85
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Tue,  5 Jun 2018 10:32:08 +0300

hugolib: Reset Page's main output on server rebuilds

Not doing so prevents the paginators to be rebuilt on changes.

Fixes #4819

Diffstat:
Mhugolib/site.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/hugolib/site.go b/hugolib/site.go
@@ -1604,6 +1604,7 @@ func (s *Site) resetBuildState() {
 		p.subSections = Pages{}
 		p.parent = nil
 		p.scratch = newScratch()
+		p.mainPageOutput = nil
 	}
 }