Skip to content

Commit

Permalink
Show pages authored using Nunjucks in ordered collection
Browse files Browse the repository at this point in the history
This means these pages will also appear in navigation lists
  • Loading branch information
paulrobertlloyd committed Sep 23, 2024
1 parent 38fe669 commit 9bf5cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collections/ordered.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = (collection) =>
collection
.getFilteredByGlob('**/*.md')
.getFilteredByGlob(['**/*.md', '**/*.njk'])
.filter((item) => !/^tag/.test(item.data.layout))
.sort((a, b) => {
if (
Expand Down

0 comments on commit 9bf5cac

Please sign in to comment.