mirror of
https://github.com/vale981/metalsmith-collections
synced 2025-03-04 17:01:41 -05:00
Mention metadata-only usage in README
This commit is contained in:
parent
86509b0ad3
commit
0655b5223e
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ There are two ways to create collections:
|
|||
|
||||
- **by pattern** - this is just passing a globing pattern that will group any files that match into the same collection.
|
||||
- **by metadata** - this is adding a specific `collection` metadata field to each item that you want to add to a collection.
|
||||
|
||||
|
||||
The simplest way to create a collection is to use a pattern to match the files you want to group together:
|
||||
|
||||
```js
|
||||
|
@ -63,6 +63,7 @@ My article contents...
|
|||
```
|
||||
|
||||
All of the files with a matching `collection` will be added to an array that is exposed as a key of the same name on the global Metalsmith `metadata`.
|
||||
You can omit passing any options to the plugin when matching based on a `collection` property.
|
||||
|
||||
## CLI Usage
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue