Skip to content

Commit

Permalink
hugolib: Reset Page's main output on server rebuilds
Browse files Browse the repository at this point in the history
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 dc4226a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -1604,6 +1604,7 @@ func (s *Site) resetBuildState() {
p.subSections = Pages{}
p.parent = nil
p.scratch = newScratch()
p.mainPageOutput = nil
}
}

Expand Down

0 comments on commit dc4226a

Please sign in to comment.