Adding tailwind as css library, build config and fetch posts fix

This commit is contained in:
Moris Zen
2018-06-27 12:06:15 +02:00
parent 8dc66673d0
commit 0749dfa80b
9 changed files with 21245 additions and 10 deletions

View File

@@ -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,
}