From 958edd90f1a1fbf15c7dc02b1ea1f19a6cc7dc1d Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Sun, 31 Jan 2016 11:40:39 -0800 Subject: [PATCH] Add pageLayouts setting to readme --- readme.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/readme.md b/readme.md index c37f151..3532970 100644 --- a/readme.md +++ b/readme.md @@ -69,6 +69,23 @@ All layouts have a special Handlebars partial called `body` which contains the c ``` +### `pageLayouts` + +**Type:** `Object` + +A list of presets for page layouts, grouped by folder. This allows you to automatically set all pages within a certain folder to have the same layout. + +```js +panini({ + root: 'src/pages/', + layouts: 'src/layouts/', + pageLayouts: { + // All pages inside src/pages/blog will use the blog.html layout + 'blog': 'blog' + } +}) +``` + ### `partials` **Type:** `String`