From: Bjørn Erik Pedersen Date: Sun, 29 Apr 2018 16:24:53 +0000 (+0200) Subject: Reset .Page.Scratch on live-reload X-Git-Tag: v0.40.2~4 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=655983a22dc35b2ee5119dcc4acb9918498d2d68;p=brevno-suite%2Fhugo Reset .Page.Scratch on live-reload Fixes #4683 --- diff --git a/hugolib/site.go b/hugolib/site.go index 2a55e433..989238be 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1587,6 +1587,7 @@ func (s *Site) resetBuildState() { for _, p := range s.rawAllPages { p.subSections = Pages{} p.parent = nil + p.scratch = newScratch() } }