From 04b4c996ac25fc0860cc24bb2e90d39404907345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 7 Aug 2015 20:30:01 +0200 Subject: [PATCH] Reset Scratch for 404 The 404 pages etc. need a better solution, but fix this issue for now. Fixes #1336 --- hugolib/site.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hugolib/site.go b/hugolib/site.go index 9f750c1a1..a8ca835ef 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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 {