"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hugolib/pagebundler_test.go" between
hugo-0.85.0.tar.gz and hugo-0.86.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

pagebundler_test.go  (hugo-0.85.0):pagebundler_test.go  (hugo-0.86.0)
skipping to change at line 293 skipping to change at line 293
b.Build(BuildCfg{}) b.Build(BuildCfg{})
sites := b.H sites := b.H
c.Assert(len(sites.Sites), qt.Equals, 2) c.Assert(len(sites.Sites), qt.Equals, 2)
s := sites.Sites[0] s := sites.Sites[0]
c.Assert(len(s.RegularPages()), qt.Equals, 8) c.Assert(len(s.RegularPages()), qt.Equals, 8)
c.Assert(len(s.Pages()), qt.Equals, 16) c.Assert(len(s.Pages()), qt.Equals, 16)
// dumpPages(s.AllPages()...) //dumpPages(s.AllPages()...)
c.Assert(len(s.AllPages()), qt.Equals, 31) c.Assert(len(s.AllPages()), qt.Equals, 31)
bundleWithSubPath := s.getPage(page.KindPage, "lb /index") bundleWithSubPath := s.getPage(page.KindPage, "lb /index")
c.Assert(bundleWithSubPath, qt.Not(qt.IsNil)) c.Assert(bundleWithSubPath, qt.Not(qt.IsNil))
// See https://github.com/gohugoio/hugo/issues/43 12 // See https://github.com/gohugoio/hugo/issues/43 12
// Before that issue: // Before that issue:
// A bundle in a/b/index.en.md // A bundle in a/b/index.en.md
// a/b/index.en.md => OK // a/b/index.en.md => OK
// a/b/index => OK // a/b/index => OK
 End of changes. 1 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)