Adding tailwind as css library, build config and fetch posts fix
This commit is contained in:
@@ -10,6 +10,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||
edges {
|
||||
node {
|
||||
slug
|
||||
status
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,7 +25,7 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||
result.data.allWordpressPost.edges.forEach(({ node }) => {
|
||||
createPage({
|
||||
path: `blog/${node.slug}`,
|
||||
component: path.resolve('./src/pages/post-default.js'),
|
||||
component: path.resolve('./src/layouts/post-default.js'),
|
||||
context: {
|
||||
slug: node.slug,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user