aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/content_map_page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-03-16 11:37:57 +0100
committerBjørn Erik Pedersen <[email protected]>2020-03-16 17:37:36 +0100
commit03b93bb9884ea479c855c2699e8c7b039dce6224 (patch)
treed6453cf01896ab65596b34e02ebb561c26e672b7 /hugolib/content_map_page.go
parent94fb4dc3dddf6803265316a7b8cfe81c29a83e91 (diff)
downloadhugo-03b93bb9884ea479c855c2699e8c7b039dce6224.tar.gz
hugo-03b93bb9884ea479c855c2699e8c7b039dce6224.zip
Add .RegularPagesRecursive
Fixes #6411
Diffstat (limited to 'hugolib/content_map_page.go')
-rw-r--r--hugolib/content_map_page.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go
index c60536285..4ba97f511 100644
--- a/hugolib/content_map_page.go
+++ b/hugolib/content_map_page.go
@@ -803,6 +803,12 @@ func (b *pagesMapBucket) getPages() page.Pages {
return b.pages
}
+func (b *pagesMapBucket) getPagesRecursive() page.Pages {
+ pages := b.owner.treeRef.collectPagesRecursive()
+ page.SortByDefault(pages)
+ return pages
+}
+
func (b *pagesMapBucket) getPagesAndSections() page.Pages {
b.pagesAndSectionsInit.Do(func() {
b.pagesAndSections = b.owner.treeRef.collectPagesAndSections()