mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 02:43:11 +00:00
parent
af34613f75
commit
b15934008f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
func (s *Site) render(name string, d interface{}, w io.Writer, layouts ...string) error {
|
||||||
layout, found := s.findFirstLayout(layouts...)
|
layout, found := s.findFirstLayout(layouts...)
|
||||||
if found == false {
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue