mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 00:52:11 +00:00
hugolib: Use the site's Tmpl for non-renderable pages
This commit is contained in:
parent
7a5cc3cfd7
commit
25bfa7e12f
1 changed files with 1 additions and 1 deletions
|
@ -1465,7 +1465,7 @@ func (p *Page) prepareLayouts() error {
|
||||||
var layouts []string
|
var layouts []string
|
||||||
if !p.IsRenderable() {
|
if !p.IsRenderable() {
|
||||||
self := "__" + p.TargetPath()
|
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 {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue