Skip to content
Discussion options

You must be logged in to vote

Looks like your code fences got mixed up in your post.


I can see an issue on this line:

const postImage = data.allMarkdownRemark.edges.node.frontmatter.image || data.site.siteMetadata.image

edges is going to be an array, so edges.node is trying to access Array.node, which doesn't exist.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lilyntalmers
Comment options

Answer selected by lilyntalmers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants