From: Bjørn Erik Pedersen Date: Mon, 15 Aug 2016 13:31:54 +0000 (+0200) Subject: Make sure the 404 node has .Data.Pages X-Git-Tag: v0.17~107 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dc3618ab;p=brevno-suite%2Fhugo Make sure the 404 node has .Data.Pages Updates #2309 --- diff --git a/hugolib/site.go b/hugolib/site.go index 27fc2416..50bca2ea 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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"}