Initial work on a author page

This commit is contained in:
Corbin Crutchley
2019-06-16 14:04:08 -07:00
parent 0d61404039
commit ad826e44e4
13 changed files with 84 additions and 367 deletions

View File

@@ -61,8 +61,6 @@ exports.createPages = ({ graphql, actions }) => {
});
}
console.log(post.node.fields.slug);
createPage({
path: `posts${post.node.fields.slug}`,
component: blogPost,
@@ -76,7 +74,7 @@ exports.createPages = ({ graphql, actions }) => {
authors.forEach((author, index, arr) => {
createPage({
path: `author/${author.node.id}`,
path: `authors/${author.node.id}`,
component: blogAuthor,
context: {
slug: author.node.id