summaryrefslogtreecommitdiffstats
path: root/hugolib/content_map.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-24 11:47:05 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-03-24 12:47:42 +0100
commit523d51948fc20e2afb4721b43203c5ab696ae220 (patch)
treeac56cd4e2be57f2d7466f8d66205ea645608d525 /hugolib/content_map.go
parent971b28904bd3d2acf87f40ed796f9b4589ce5922 (diff)
Fix _build.list.local logic
Fixes #7089
Diffstat (limited to 'hugolib/content_map.go')
-rw-r--r--hugolib/content_map.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/content_map.go b/hugolib/content_map.go
index 7b28965ac..3c57fffcf 100644
--- a/hugolib/content_map.go
+++ b/hugolib/content_map.go
@@ -796,11 +796,11 @@ func newContentTreeFilter(fn func(n *contentNode) bool) contentTreeNodeCallback
}
var (
- contentTreeNoListFilter = func(s string, n *contentNode) bool {
+ contentTreeNoListAlwaysFilter = func(s string, n *contentNode) bool {
if n.p == nil {
return true
}
- return n.p.m.noList()
+ return n.p.m.noListAlways()
}
contentTreeNoRenderFilter = func(s string, n *contentNode) bool {
@@ -814,7 +814,7 @@ var (
func (c *contentTree) WalkQuery(query pageMapQuery, walkFn contentTreeNodeCallback) {
filter := query.Filter
if filter == nil {
- filter = contentTreeNoListFilter
+ filter = contentTreeNoListAlwaysFilter
}
if query.Prefix != "" {
c.WalkPrefix(query.Prefix, func(s string, v interface{}) bool {