hugolib: Use the site's Tmpl for non-renderable pages

This commit is contained in:
Bjørn Erik Pedersen 2017-02-10 01:28:02 +07:00
parent 7a5cc3cfd7
commit 25bfa7e12f

View file

@ -1465,7 +1465,7 @@ func (p *Page) prepareLayouts() error {
var layouts []string
if !p.IsRenderable() {
self := "__" + p.TargetPath()
_, err := p.Site.owner.Tmpl.GetClone().New(self).Parse(string(p.Content))
_, err := p.s.Tmpl.GetClone().New(self).Parse(string(p.Content))
if err != nil {
return err
}