Permalink
Browse files

Render 404 in default language only

This prevents 404.html from being re-rendered for each site.

Fixes #3075
  • Loading branch information...
mitchchn authored and bep committed Apr 30, 2017
1 parent 565a78b commit 154e18ddb9ad205055d5bd4827c87f3f0daf499f
Showing with 4 additions and 0 deletions.
  1. +4 −0 hugolib/site_render.go
View
@@ -239,6 +239,10 @@ func (s *Site) render404() error {
return nil
}
if s.owner.multilingual.enabled() && (s.Language.Lang != s.owner.multilingual.DefaultLang.Lang) {
return nil
}
p := s.newNodePage(kind404)
p.Title = "404 Page not found"

0 comments on commit 154e18d

Please sign in to comment.