hubolib: Headless bundles should not be listed in .Pages

Fixes #6492
This commit is contained in:
Bjørn Erik Pedersen
2019-11-10 13:36:33 +01:00
parent 70a1aa345b
commit d1d1f240a2
3 changed files with 21 additions and 8 deletions

View File

@@ -579,6 +579,12 @@ HEADLESS {{< myShort >}}
// But the bundled resources needs to be published
th.assertFileContent(filepath.FromSlash(workDir+"/public/s2/l1.png"), "PNG")
// No headless bundles here, please.
// https://github.com/gohugoio/hugo/issues/6492
c.Assert(s.RegularPages(), qt.HasLen, 1)
c.Assert(s.home.RegularPages(), qt.HasLen, 1)
c.Assert(s.home.Pages(), qt.HasLen, 1)
}
func TestMultiSiteBundles(t *testing.T) {