mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
tpl: Fix baseof.html in error message
This fix should also make the template loadin slightly faster, as we avoid to reparse the baseof.html files more than one time. Fixes #5288
This commit is contained in:
1 file changed
+2
-2
@@ -568,7 +568,7 @@ func (t *htmlTemplates) handleMaster(name, overlayFilename, masterFilename strin
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
masterTpl, err = t.t.New(overlayFilename).Parse(templ)
|
masterTpl, err = t.t.New(masterFilename).Parse(templ)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -609,7 +609,7 @@ func (t *textTemplates) handleMaster(name, overlayFilename, masterFilename strin
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
masterTpl, err = t.t.New(overlayFilename).Parse(templ)
|
masterTpl, err = t.t.New(masterFilename).Parse(templ)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user