diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-03-24 11:47:05 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-03-24 12:47:42 +0100 |
commit | 523d51948fc20e2afb4721b43203c5ab696ae220 (patch) | |
tree | ac56cd4e2be57f2d7466f8d66205ea645608d525 /hugolib/disableKinds_test.go | |
parent | 971b28904bd3d2acf87f40ed796f9b4589ce5922 (diff) | |
download | hugo-523d51948fc20e2afb4721b43203c5ab696ae220.tar.gz hugo-523d51948fc20e2afb4721b43203c5ab696ae220.zip |
Fix _build.list.local logic
Fixes #7089
Diffstat (limited to 'hugolib/disableKinds_test.go')
-rw-r--r-- | hugolib/disableKinds_test.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hugolib/disableKinds_test.go b/hugolib/disableKinds_test.go index 9ac30442e..87c2b5d3d 100644 --- a/hugolib/disableKinds_test.go +++ b/hugolib/disableKinds_test.go @@ -269,10 +269,9 @@ title: Headless Local Lists Sub sect := getPage(b, ref) b.Assert(sect, qt.Not(qt.IsNil)) b.Assert(getPageInSitePages(b, ref), qt.IsNil) - b.Assert(getPageInSitePages(b, ref+"/headless-local-page"), qt.IsNil) - for i, p := range sect.RegularPages() { - fmt.Println("REG", i, p.(*pageState).sourceRef()) - } + + b.Assert(getPageInSitePages(b, "/headless-local/_index.md"), qt.IsNil) + b.Assert(getPageInSitePages(b, "/headless-local/headless-local-page.md"), qt.IsNil) localPageRef := ref + "/headless-local-page.md" |