Permalink
Browse files

hugolib: Reset Page's main output on server rebuilds

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

Fixes #4819
  • Loading branch information...
bep committed Jun 5, 2018
1 parent bf5f10f commit dc4226a8b27e03e31068fc945daab885d3819d04
Showing with 1 addition and 0 deletions.
  1. +1 −0 hugolib/site.go
View
@@ -1604,6 +1604,7 @@ func (s *Site) resetBuildState() {
p.subSections = Pages{}
p.parent = nil
p.scratch = newScratch()
p.mainPageOutput = nil
}
}

0 comments on commit dc4226a

Please sign in to comment.