Make sure the 404 node has .Data.Pages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 15 Aug 2016 13:31:54 +0000 (15:31 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 6 Sep 2016 15:32:21 +0000 (18:32 +0300)
Updates #2309

hugolib/site.go

index 27fc2416913faafd552ae13754d0a9a23d3baf9c..50bca2ea289b5b04408d34a51db3f8506272d94a 100644 (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"}