mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-09 12:40:49 -04:00
Revert "Restrict the new type layout resolution to page and section kinds"
This reverts commit 78e8a744b34e885e8169bf0a8bb64c73288e555a.
This commit is contained in:
parent
6bc892fc24
commit
5dc1f95b63
@ -414,7 +414,6 @@ func (p *Page) createLayoutDescriptor() output.LayoutDescriptor {
|
||||
|
||||
var typeCurrentSection string
|
||||
var typeRootSection string
|
||||
if p.Kind == KindPage || p.Kind == KindSection {
|
||||
curr := p.CurrentSection()
|
||||
// Make sure we use the contentType only. This is the value from front matter.
|
||||
if curr != nil {
|
||||
@ -424,7 +423,6 @@ func (p *Page) createLayoutDescriptor() output.LayoutDescriptor {
|
||||
if first != nil {
|
||||
typeRootSection = first.contentType
|
||||
}
|
||||
}
|
||||
|
||||
return output.LayoutDescriptor{
|
||||
Kind: p.Kind,
|
||||
|
Loading…
x
Reference in New Issue
Block a user