Skip to content

Commit

Permalink
update gatsby-plugin-layout readme with default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Aug 16, 2018
1 parent c8e8365 commit b1625e2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/gatsby-plugin-layout/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ npm install --save gatsby-plugin-layout@next

## How to use

Add the plugin to your `gatsby-config.js` and set path to component:
Add the plugin to your `gatsby-config.js`:

By default plugin will try to use Layout component located in `src/layouts/index.js` (same as Gatsby v1)

```js
module.exports = {
plugins: [
`gatsby-plugin-layout`
]
];
```
If you prefer to keep layout in different place, you can use `component` option:
```js
module.exports = {
Expand Down

0 comments on commit b1625e2

Please sign in to comment.