diff --git a/Readme.md b/Readme.md index 3f22ea8..d02387e 100644 --- a/Readme.md +++ b/Readme.md @@ -4,15 +4,7 @@ > A metalsmith plugin for layouts -This plugin passes your source files to a template as `contents` and renders them with the templating engine of your choice. You can use any templating engine supported by [consolidate.js](https://github.com/tj/consolidate.js#supported-template-engines). Pass options to `metalsmith-layouts` with the [Javascript API](https://github.com/segmentio/metalsmith#api) or [CLI](https://github.com/segmentio/metalsmith#cli). The options are: - -* `engine`: templating engine (required) -* `default`: default template (optional) -* `directory`: directory for the layouts, `layouts` by default (optional) -* `partials`: a folder to scan for partials, will register all found files as partials (optional) -* `pattern`: only files that match this pattern will be processed (optional) - -Any unrecognised options will be passed on to consolidate.js. You can use this, for example, to disable caching by passing `cache: false` to consolidate. Note that passing anything but a string to the `partials` option will pass the option on to consolidate. See the [consolidate.js documentation](https://github.com/tj/consolidate.js) for all available options. +This plugin allows you to apply layouts to your source files. It passes your source files to the selected layout as `contents` and renders the result with the templating engine of your choice. You can use any templating engine supported by [consolidate.js](https://github.com/tj/consolidate.js#supported-template-engines). ## Installation @@ -28,8 +20,7 @@ Configuration in `metalsmith.json`: { "plugins": { "metalsmith-layouts": { - "engine": "handlebars", - "partials": "partials" + "engine": "handlebars" } } } @@ -54,20 +45,12 @@ Layout `layouts/layout.html`: