Reset .Page.Scratch on live-reload

Fixes #4683
This commit is contained in:
Bjørn Erik Pedersen 2018-04-29 18:24:53 +02:00
parent 001a28c2f9
commit 655983a22d

View file

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