hugolib: Honor implicit "page" type during template selection

Closes #13826
This commit is contained in:
Joe Mooring
2025-07-02 03:05:40 -07:00
committed by Bjørn Erik Pedersen
parent dd6e2c8724
commit cfc8d315b4
3 changed files with 60 additions and 2 deletions

View File

@@ -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,