Skip to content

Commit

Permalink
Resolves #183: pass the transformed list of files to metalsmith.match…
Browse files Browse the repository at this point in the history
… so that renamed files can be matched
  • Loading branch information
exortech committed May 11, 2022
1 parent 0b0f797 commit a86003e
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 a86003e

Please # to comment.