Reset Scratch for 404

The 404 pages etc. need a better solution, but fix this issue for now.

Fixes #1336
This commit is contained in:
Bjørn Erik Pedersen 2015-08-07 20:30:01 +02:00
parent b05a292c21
commit 04b4c996ac

View file

@ -1312,6 +1312,7 @@ func (s *Site) RenderHomePage() error {
n.IsHome = false
n.Title = "404 Page not found"
n.Permalink = s.permalink("404.html")
n.scratch = newScratch()
nfLayouts := []string{"404.html"}
if nfErr := s.renderAndWritePage("404 page", "404.html", n, s.appendThemeTemplates(nfLayouts)...); nfErr != nil {