From: Bjørn Erik Pedersen Date: Thu, 14 Jul 2016 09:29:21 +0000 (+0200) Subject: Revert "Throw a noisy error when a post has no layout" X-Git-Tag: v0.17~235 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ef9b9156;p=brevno-suite%2Fhugo Revert "Throw a noisy error when a post has no layout" We have to figure out another way. There are perfectly valid reasons not having a layout for a page (I have have some broken sites as result of this). See #1313 This reverts commit b15934008fd6a1e7bcf9b8a47ab66e33271c4dca. --- diff --git a/hugolib/site.go b/hugolib/site.go index 174c7395..2a850b3a 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -2025,7 +2025,7 @@ func (s *Site) renderAndWritePage(name string, dest string, d interface{}, layou func (s *Site) render(name string, d interface{}, w io.Writer, layouts ...string) error { layout, found := s.findFirstLayout(layouts...) if found == false { - jww.ERROR.Printf("Unable to locate layout for %s: %s\n", name, layouts) + jww.WARN.Printf("Unable to locate layout for %s: %s\n", name, layouts) return nil }