mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
Revert "hugolib: Honor implicit "page" type during template selection"
This reverts commit cfc8d315b4
.
See #13868
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user