Skip to content

Commit

Permalink
Merge pull request #184 from doteco/master
Browse files Browse the repository at this point in the history
Resolves #183: pass the transformed list of files to metalsmith.match…
  • Loading branch information
webketje authored May 15, 2022
2 parents 0b0f797 + a86003e commit 6d24e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function initLayouts(options) {
}

// Filter files by the pattern
const matchedFiles = metalsmith.match(settings.pattern)
const matchedFiles = metalsmith.match(settings.pattern, Object.keys(files))

// Filter files by validity
const validFiles = matchedFiles.filter((filename) => validate({ filename, files, settings }))
Expand Down

0 comments on commit 6d24e90

Please sign in to comment.