mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
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:
parent
b05a292c21
commit
04b4c996ac
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue