Skip to content

Commit

Permalink
Make sure the 404 node has .Data.Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored and tychoish committed Aug 13, 2017
1 parent 77bae7c commit 9827a1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hugolib/site.go
Expand Up @@ -1948,6 +1948,7 @@ func (s *Site) renderHomePage(prepare bool) error {

node404 := s.newNode("404")
node404.Title = "404 Page not found"
node404.Data["Pages"] = s.Pages
s.setURLs(node404, "404.html")

nfLayouts := []string{"404.html"}
Expand Down

0 comments on commit 9827a1e

Please sign in to comment.