From dc4226a8b27e03e31068fc945daab885d3819d04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 5 Jun 2018 10:32:08 +0300 Subject: [PATCH] hugolib: Reset Page's main output on server rebuilds Not doing so prevents the paginators to be rebuilt on changes. Fixes #4819 --- hugolib/site.go | 1 + 1 file changed, 1 insertion(+) 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 } }