diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-26 11:45:12 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 9a0aa5fdbe3ef35b7cc1dd756f54f1b219225bfc (patch) | |
tree | cac18524ff403396098d3b4e7a3cae472d57c51e /tpl | |
parent | 0aaf3c56a511c6582db4dbfb28879e964e6f2d92 (diff) |
hugolib: Wrap pageOutput create in sync.Once
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/tplimpl/template.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index 17cbb40f3..545d5994a 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -180,6 +180,7 @@ func (t *GoHTMLTemplate) executeTemplate(context interface{}, w io.Writer, layou for _, layout := range layouts { templ := t.Lookup(layout) if templ == nil { + // TODO(bep) output layout += ".html" templ = t.Lookup(layout) } |