Skip to content

Commit

Permalink
Add information about snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Oct 3, 2014
1 parent 2de3722 commit 062c29a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ metalsmith.use(snippet({
}));
```

### Templates

The module adds a `snippet` property to the metadata of every file, if it hasn't already been defined. This allows you to define a custom snippet inline when you want to provide something more advanced than the autogenerated snippet.

```
---
title: Example Article
snippet: This is a snippet about my article.
---
```

## License

MIT
Expand Down

0 comments on commit 062c29a

Please sign in to comment.