hugolib: Reset Page's main output on server rebuilds

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

Fixes #4819
This commit is contained in:
Bjørn Erik Pedersen committed 2018-06-05 10:45:24 +03:00
1 parent bf5f10faa9
commit dc4226a8b2
1 file changed
+1
+1
View File
@@ -1604,6 +1604,7 @@ func (s *Site) resetBuildState() {
p.subSections = Pages{}
p.parent = nil
p.scratch = newScratch()
p.mainPageOutput = nil
}
}