Print layout name if it was specified when showing missing layout file error

Fixes #7617
This commit is contained in:
Andreas Richter
2020-09-13 14:36:37 -04:00
committed by GitHub
parent 4fad43c8bd
commit 9df60b62f9
2 changed files with 8 additions and 3 deletions

View File

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