mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Print layout name if it was specified when showing missing layout file error
Fixes #7617
This commit is contained in:
@@ -1721,7 +1721,7 @@ func (hr hookRenderer) RenderHeading(w io.Writer, ctx hooks.HeadingContext) erro
|
||||
|
||||
func (s *Site) renderForTemplate(name, outputFormat string, d interface{}, w io.Writer, templ tpl.Template) (err error) {
|
||||
if templ == nil {
|
||||
s.logMissingLayout(name, "", outputFormat)
|
||||
s.logMissingLayout(name, "", "", outputFormat)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user