mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
1 parent
794589fbfd
commit
588256776e
1 file changed
+4
-1
+4
-1
@@ -257,7 +257,10 @@ func (t *GoHTMLTemplate) AddTemplateFileWithMaster(name, overlayFilename, master
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.errors = append(t.errors, &templateErr{name: name, err: err})
|
t.errors = append(t.errors, &templateErr{name: name, err: err})
|
||||||
} else {
|
} else {
|
||||||
t.overlays[name] = overlayTpl
|
// The extra lookup is a workaround, see
|
||||||
|
// * https://github.com/golang/go/issues/16101
|
||||||
|
// * https://github.com/spf13/hugo/issues/2549
|
||||||
|
t.overlays[name] = overlayTpl.Lookup(overlayTpl.Name())
|
||||||
}
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user