Throw a noisy error when a post has no layout Fixes #1313 - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit b15934008fd6a1e7bcf9b8a47ab66e33271c4dca
DIR parent af34613f757f5f99547759f84f77449aaa091a54
HTML Author: Aditya Bhargava <bluemangroupie@gmail.com>
Date: Sat, 12 Mar 2016 15:22:04 -0800
Throw a noisy error when a post has no layout
Fixes #1313
Diffstat:
M hugolib/site.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git 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.WARN.Printf("Unable to locate layout for %s: %s\n", name, layouts)
+ jww.ERROR.Printf("Unable to locate layout for %s: %s\n", name, layouts)
return nil
}