Reset .Page.Scratch on live-reload
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 29 Apr 2018 16:24:53 +0000 (18:24 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 30 Apr 2018 06:21:22 +0000 (08:21 +0200)
Fixes #4683

hugolib/site.go

index 2a55e4330d16cdaeb3058afee268f1712286e781..989238bedcfc2e6838f979bb961747776ead32ea 100644 (file)
@@ -1587,6 +1587,7 @@ func (s *Site) resetBuildState() {
        for _, p := range s.rawAllPages {
                p.subSections = Pages{}
                p.parent = nil
+               p.scratch = newScratch()
        }
 }