shithub: hugo

Download patch

ref: 655983a22dc35b2ee5119dcc4acb9918498d2d68
parent: 001a28c2f9ed121b33df18fe792859ab378784c6
author: Bjørn Erik Pedersen <[email protected]>
date: Sun Apr 29 14:24:53 EDT 2018

Reset .Page.Scratch on live-reload

Fixes #4683

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -1587,6 +1587,7 @@
 	for _, p := range s.rawAllPages {
 		p.subSections = Pages{}
 		p.parent = nil
+		p.scratch = newScratch()
 	}
 }