Skip to content

For discussion: Add Nunjucks page listing support#264

Draft
colinrotherham wants to merge 2 commits intomove-test-templatesfrom
page-index
Draft

For discussion: Add Nunjucks page listing support#264
colinrotherham wants to merge 2 commits intomove-test-templatesfrom
page-index

Conversation

@colinrotherham
Copy link
Copy Markdown
Contributor

This PR proposes something like {{ pageIndex() }} to list all pages within a directory

Would potentially close #169

For discussion if we find it useful

Page listing

@colinrotherham colinrotherham temporarily deployed to nhsuk-protot-page-index-uxgeby February 26, 2026 12:07 Inactive
@frankieroberto
Copy link
Copy Markdown
Contributor

@colinrotherham nice! The downside with this approach I guess is that it doesn't work if you have custom routes?

@colinrotherham
Copy link
Copy Markdown
Contributor Author

Yeah no custom routes, but still useful you said? 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants