From 179de5f5bc0336c9c279e851ea13202b7ffe572e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 9 Jul 2018 10:29:18 +0200 Subject: Revert "Consider root and current section's content type if set in front matter" This reverts commit c790029e1dbb0b66af18d05764bd6045deb2e180. --- hugolib/site_sections_test.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hugolib/site_sections_test.go') 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) -- cgit v1.2.3