hugolib: Simplify

This commit is contained in:
Bjørn Erik Pedersen
2016-11-23 18:28:14 +01:00
parent f1ed89fec4
commit 4360452001
6 changed files with 13 additions and 32 deletions

View File

@@ -1797,7 +1797,7 @@ Your rendered home page is blank: /index.html is zero-length
func (s *Site) renderForLayouts(name string, d interface{}, w io.Writer, layouts ...string) error {
layout, found := s.findFirstLayout(layouts...)
if found == false {
if !found {
jww.WARN.Printf("Unable to locate layout for %s: %s\n", name, layouts)
return nil
}