Skip to content

Commit

Permalink
tpl: Fix baseof.html in error message
Browse files Browse the repository at this point in the history
This fix should also make the template loadin slightly faster, as we avoid to reparse the baseof.html files more than one time.

Fixes gohugoio#5288
  • Loading branch information
bep committed Oct 6, 2018
1 parent e421696 commit 646a52a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tpl/tplimpl/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func (t *htmlTemplates) handleMaster(name, overlayFilename, masterFilename strin
return err
}

masterTpl, err = t.t.New(overlayFilename).Parse(templ)
masterTpl, err = t.t.New(masterFilename).Parse(templ)
if err != nil {
return err
}
Expand Down Expand Up @@ -609,7 +609,7 @@ func (t *textTemplates) handleMaster(name, overlayFilename, masterFilename strin
return err
}

masterTpl, err = t.t.New(overlayFilename).Parse(templ)
masterTpl, err = t.t.New(masterFilename).Parse(templ)
if err != nil {
return err
}
Expand Down

0 comments on commit 646a52a

Please sign in to comment.