Skip to content

Instantly share code, notes, and snippets.

@johno
Created February 23, 2019 13:40
Show Gist options
  • Save johno/17c58c7f65ea09225315778b8cad5ab1 to your computer and use it in GitHub Desktop.
Save johno/17c58c7f65ea09225315778b8cad5ab1 to your computer and use it in GitHub Desktop.
Add gatsby-plugin-page-creator to your Gatsby Theme's config in order to create pages (this will soon be built into themes)
const path = require('path')
module.exports = {
plugins: [
// ...
{
resolve: 'gatsby-plugin-page-creator',
options: {
path: path.join(__dirname, 'src', 'pages')
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment