mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 06:00:25 +03:00
Revert "Consider root and current section's content type if set in front matter"
This reverts commit c790029e1d
.
This commit is contained in:
parent
5dc1f95b63
commit
179de5f5bc
5 changed files with 7 additions and 67 deletions
|
@ -176,8 +176,6 @@ PAG|{{ .Title }}|{{ $sect.InSection . }}
|
|||
active, err := home.InSection(home)
|
||||
assert.NoError(err)
|
||||
assert.True(active)
|
||||
assert.Equal(p, p.FirstSection())
|
||||
|
||||
}},
|
||||
{"l1", func(p *Page) {
|
||||
assert.Equal("L1s", p.title)
|
||||
|
@ -252,8 +250,6 @@ PAG|{{ .Title }}|{{ $sect.InSection . }}
|
|||
assert.NoError(err)
|
||||
assert.False(isAncestor)
|
||||
|
||||
assert.Equal(l1, p.FirstSection())
|
||||
|
||||
}},
|
||||
{"perm a,link", func(p *Page) {
|
||||
assert.Equal("T9_-1", p.title)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue