Fix _build.list.local logic

Fixes #7089
This commit is contained in:
Bjørn Erik Pedersen
2020-03-24 11:47:05 +01:00
parent 971b28904b
commit 523d51948f
5 changed files with 10 additions and 15 deletions

View File

@@ -304,7 +304,7 @@ func (m *pageMap) createListAllPages() page.Pages {
if n.p == nil {
panic(fmt.Sprintf("BUG: page not set for %q", s))
}
if contentTreeNoListFilter(s, n) {
if contentTreeNoListAlwaysFilter(s, n) {
return false
}
pages = append(pages, n.p)
@@ -613,7 +613,7 @@ type pageMapQuery struct {
func (m *pageMap) collectPages(query pageMapQuery, fn func(c *contentNode)) error {
if query.Filter == nil {
query.Filter = contentTreeNoListFilter
query.Filter = contentTreeNoListAlwaysFilter
}
m.pages.WalkQuery(query, func(s string, n *contentNode) bool {