hugolib: Make .Site.Sections return the top level sections

See #3591
This commit is contained in:
Bjørn Erik Pedersen 2017-07-02 18:20:14 +02:00
parent 1039356edf
commit dd9b1baab0
2 changed files with 8 additions and 24 deletions

View file

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