diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-06-05 10:32:08 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-06-05 10:45:24 +0300 |
commit | dc4226a8b27e03e31068fc945daab885d3819d04 (patch) | |
tree | 23a87a1353ef11168681093f35ad8ae0ce2189f8 | |
parent | bf5f10faa9fd445c4dd21839aa7d73cd2acbfb85 (diff) | |
download | hugo-dc4226a8b27e03e31068fc945daab885d3819d04.tar.gz hugo-dc4226a8b27e03e31068fc945daab885d3819d04.zip |
hugolib: Reset Page's main output on server rebuilds
Not doing so prevents the paginators to be rebuilt on changes.
Fixes #4819
-rw-r--r-- | hugolib/site.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 2f47ac236..273d61901 100644 --- 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 } } |