Make sure the 404 node has .Data.Pages

Updates #2309
This commit is contained in:
Bjørn Erik Pedersen committed 2016-09-06 18:32:21 +03:00
1 parent 30d65fd48d
commit dc3618abcd
1 file changed
+1
+1
View File
@@ -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"}