404 is homeless

Fixes #1235
This commit is contained in:
Bjørn Erik Pedersen
2015-06-28 10:43:43 +02:00
parent 50df31406f
commit 664a97819f
2 changed files with 8 additions and 6 deletions

View File

@@ -1314,7 +1314,9 @@ func (s *Site) RenderHomePage() error {
}
}
// TODO(bep) reusing the Home Node smells trouble
n.URL = helpers.URLize("404.html")
n.IsHome = false
n.Title = "404 Page not found"
n.Permalink = s.permalink("404.html")