mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
hugolib: Honor implicit "page" type during template selection
Closes #13826
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
dd6e2c8724
commit
cfc8d315b4
@@ -479,7 +479,7 @@ func (ps *pageState) initCommonProviders(pp pagePaths) error {
|
||||
func (po *pageOutput) GetInternalTemplateBasePathAndDescriptor() (string, tplimpl.TemplateDescriptor) {
|
||||
p := po.p
|
||||
f := po.f
|
||||
base := p.PathInfo().BaseReTyped(p.m.pageConfig.Type)
|
||||
base := p.PathInfo().BaseReTyped(p.m.Type())
|
||||
return base, tplimpl.TemplateDescriptor{
|
||||
Kind: p.Kind(),
|
||||
Lang: p.Language().Lang,
|
||||
|
Reference in New Issue
Block a user