mirror of
https://github.com/vale981/metalsmith-collections
synced 2025-03-04 17:01:41 -05:00
update readme
This commit is contained in:
parent
81dd81dca3
commit
094502b1bb
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ metalsmith.use(collections({
|
|||
|
||||
Which is just a shorthand. You could also add additional options:
|
||||
|
||||
```
|
||||
```js
|
||||
metalsmith.use(collections({
|
||||
articles: {
|
||||
pattern: '*.md',
|
||||
|
@ -45,7 +45,7 @@ metalsmith.use(collections({
|
|||
|
||||
But you can also match based on a `collection` property in each file's metadata by omitting a pattern, and adding the property to your files:
|
||||
|
||||
```
|
||||
```js
|
||||
metalsmith.use(collections({
|
||||
articles: {
|
||||
sortBy: 'date',
|
||||
|
|
Loading…
Add table
Reference in a new issue