Update Blog page allMdx query
This adds isPost
to any mdx node:
// gatsby-node.js
createNodeField({
name: 'isPost',
node,
value: true,
})
Update the page query in src/templates/blog.js
//...
allMdx(
sort: { fields: [frontmatter___date], order: DESC }
filter: { fields: { isPost: { eq: true } } }
)
//...
This allows us to remove:
parent {
... on File {
sourceInstanceName
}
}