diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-07-09 10:29:18 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-07-09 10:29:18 +0200 |
commit | 179de5f5bc0336c9c279e851ea13202b7ffe572e (patch) | |
tree | a7f058536f5f0a240b352dbadad2def3f1a28b48 /hugolib/site_sections_test.go | |
parent | 5dc1f95b63267fe93aca09b3bf0d59b2484c21e4 (diff) | |
download | hugo-179de5f5bc0336c9c279e851ea13202b7ffe572e.tar.gz hugo-179de5f5bc0336c9c279e851ea13202b7ffe572e.zip |
Revert "Consider root and current section's content type if set in front matter"
This reverts commit c790029e1dbb0b66af18d05764bd6045deb2e180.
Diffstat (limited to 'hugolib/site_sections_test.go')
-rw-r--r-- | hugolib/site_sections_test.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hugolib/site_sections_test.go b/hugolib/site_sections_test.go index 01550c9fa..772d23e23 100644 --- a/hugolib/site_sections_test.go +++ b/hugolib/site_sections_test.go @@ -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) |