Added gatsby netlify plugin, changed file structure and config

This commit is contained in:
Moris Zen
2018-06-27 14:20:54 +02:00
parent ac2f3c0197
commit 797339b644
7 changed files with 44 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
result.data.allWordpressPost.edges.forEach(({ node }) => {
createPage({
path: `blog/${node.slug}`,
component: path.resolve('./src/layouts/post-default.js'),
component: path.resolve('./src/templates/post-default.js'),
context: {
slug: node.slug,
}