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

@@ -640,7 +640,7 @@ func (p *Path) Base() string {
// For pages with Type set, we treat that as the section.
func (p *Path) BaseReTyped(typ string) (d string) {
base := p.Base()
if p.Section() == typ {
if typ == "" || p.Section() == typ {
return base
}
d = "/" + typ