diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-20 11:37:21 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-20 20:28:55 +0300 |
commit | 99958f90fedec11d749a1397300860aa8e8459c2 (patch) | |
tree | 902f114f6ec14694311fddb416375794d33c3a92 /hugolib/page.go | |
parent | 1d91d8e14b13bd135dc4d4a901fc936c9649b219 (diff) |
Allow headless bundles to list pages via $page.Pages and $page.RegularPages
Fixes #7075
Diffstat (limited to 'hugolib/page.go')
-rw-r--r-- | hugolib/page.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index f71c4d9b8..fddc25fa0 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -147,7 +147,7 @@ func (p *pageState) GetTerms(taxonomy string) page.Pages { var pas page.Pages - m.taxonomies.WalkPrefixListable(prefix, func(s string, n *contentNode) bool { + m.taxonomies.WalkQuery(pageMapQuery{Prefix: prefix}, func(s string, n *contentNode) bool { if _, found := m.taxonomyEntries.Get(s + self); found { pas = append(pas, n.p) } |