mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-14 21:07:47 +00:00
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:
parent
bf5f10faa9
commit
dc4226a8b2
|
@ -1604,6 +1604,7 @@ func (s *Site) resetBuildState() {
|
||||||
p.subSections = Pages{}
|
p.subSections = Pages{}
|
||||||
p.parent = nil
|
p.parent = nil
|
||||||
p.scratch = newScratch()
|
p.scratch = newScratch()
|
||||||
|
p.mainPageOutput = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue