Revert "hugolib: Honor implicit "page" type during template selection"

This reverts commit cfc8d315b4.

See #13868
This commit is contained in:
Bjørn Erik Pedersen
2025-07-27 12:18:13 +02:00
parent 9c57af1351
commit 3937ab24d0
3 changed files with 2 additions and 60 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.Type())
base := p.PathInfo().BaseReTyped(p.m.pageConfig.Type)
return base, tplimpl.TemplateDescriptor{
Kind: p.Kind(),
Lang: p.Language().Lang,