mirror of
https://github.com/vale981/metalsmith-layouts
synced 2025-03-04 17:21:37 -05:00
Merge pull request #87 from doodzik/patch-1
changing pattern example fix #79
This commit is contained in:
commit
cb6e9ee095
1 changed files with 4 additions and 3 deletions
|
@ -165,14 +165,15 @@ Only files that match this pattern will be processed. So this `metalsmith.json`:
|
|||
{
|
||||
"plugins": {
|
||||
"metalsmith-layouts": {
|
||||
"engine": "swig",
|
||||
"pattern": "*.md"
|
||||
"engine": "handlebars",
|
||||
"pattern": "**/*.hbs"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Would only process files that have the `.md` extension.
|
||||
Would process all files that have the `.hbs` extension. Beware that the extensions might be changed by other plugins in the build chain, preventing the pattern from matching.
|
||||
We use [multimatch](https://github.com/sindresorhus/multimatch) for the pattern matching.
|
||||
|
||||
### rename
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue