From: Mitchell Cohen Date: Sun, 30 Apr 2017 08:40:37 +0000 (-0400) Subject: Render 404 in default language only X-Git-Tag: v0.21~81 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=154e18dd;p=brevno-suite%2Fhugo Render 404 in default language only This prevents 404.html from being re-rendered for each site. Fixes #3075 --- diff --git a/hugolib/site_render.go b/hugolib/site_render.go index a82c9313..6aeaf677 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -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"