Added gatsby netlify plugin, changed file structure and config
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user