mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue