fix schema type conflicts
Signed-off-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
This commit is contained in:
parent
3bbd0521d0
commit
b00be20212
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
|
||||||
const posts = result.data.allMarkdownRemark.edges;
|
const posts = result.data.allMarkdownRemark.edges;
|
||||||
|
|
||||||
_.each(posts, (post, index) => {
|
_.each(posts, (post, index) => {
|
||||||
const previous = index === posts.length - 1 ? false : posts[index + 1].node;
|
const previous = index === posts.length - 1 ? null : posts[index + 1].node;
|
||||||
const next = index === 0 ? false : posts[index - 1].node;
|
const next = index === 0 ? null : posts[index - 1].node;
|
||||||
|
|
||||||
createPage({
|
createPage({
|
||||||
path: post.node.fields.slug,
|
path: post.node.fields.slug,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue