Skip to content

Commit

Permalink
Remove SCSS files in all collection
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jun 24, 2024
1 parent c0f87e8 commit d656e3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = function (eleventyConfig, pluginOptions = {}) {
eleventyConfig.setLibrary('njk', require('./lib/nunjucks.js')(eleventyConfig))

// Collections
eleventyConfig.addCollection('all', require('./lib/collections/all.js'))
eleventyConfig.addCollection(
'ordered',
require('./lib/collections/ordered.js')
Expand Down
2 changes: 2 additions & 0 deletions lib/collections/all.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module.exports = (collection) =>
collection.getAll().filter((item) => !item.inputPath.includes('.scss'))

0 comments on commit d656e3f

Please sign in to comment.