Revert "Consider root and current section's content type if set in front matter"

This reverts commit c790029e1d.
This commit is contained in:
Bjørn Erik Pedersen 2018-07-09 10:29:18 +02:00
parent 5dc1f95b63
commit 179de5f5bc
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
5 changed files with 7 additions and 67 deletions

View file

@ -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)