Mention metadata-only usage in README

This commit is contained in:
David Knezic 2014-10-13 13:09:41 +02:00
parent 86509b0ad3
commit 0655b5223e

View file

@ -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