shithub: hugo

Download patch

ref: b15934008fd6a1e7bcf9b8a47ab66e33271c4dca
parent: af34613f757f5f99547759f84f77449aaa091a54
author: Aditya Bhargava <[email protected]>
date: Sat Mar 12 10:22:04 EST 2016

Throw a noisy error when a post has no layout
Fixes #1313

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -2025,7 +2025,7 @@
 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
 	}