diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-07-02 18:20:14 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-07-04 09:11:49 +0200 |
commit | dd9b1baab0cb860a3eb32fd9043bac18cab3f9f0 (patch) | |
tree | 75094e56a0be7bffb5f7647dc7855f5aa0400a4f /hugolib/site_sections_test.go | |
parent | 1039356edf747f044c989a5bc0e85d792341ed5d (diff) |
hugolib: Make .Site.Sections return the top level sections
See #3591
Diffstat (limited to 'hugolib/site_sections_test.go')
-rw-r--r-- | hugolib/site_sections_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/site_sections_test.go b/hugolib/site_sections_test.go index 7479c45fc..77a85099c 100644 --- a/hugolib/site_sections_test.go +++ b/hugolib/site_sections_test.go @@ -246,6 +246,7 @@ PAG|{{ .Title }}|{{ $sect.InSection . }} assert.NotNil(home) assert.Len(home.Sections(), 9) + assert.Equal(home.Sections(), s.Info.Sections()) rootPage := s.getPage(KindPage, "mypage.md") assert.NotNil(rootPage) |