mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +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
@@ -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 typ == "" || p.Section() == typ {
|
||||
if p.Section() == typ {
|
||||
return base
|
||||
}
|
||||
d = "/" + typ
|
||||
|
Reference in New Issue
Block a user