Throw a noisy error when a post has no layout

Fixes #1313
This commit is contained in:
Aditya Bhargava 2016-03-12 15:22:04 -08:00 committed by Bjørn Erik Pedersen
parent af34613f75
commit b15934008f

View file

@ -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
}