Custom frontmatter variables with Markdown Remark in Gatsby.js

前端 未结 2 627
野的像风
野的像风 2021-02-12 08:29

I am building a website using Gatsbyjs and NetlifyCMS. I\'ve started using this starter https://github.com/AustinGreen/gatsby-starter-netlify-cms, and I am trying to customise i

2条回答
  •  故里飘歌
    2021-02-12 08:57

    Solved!

    The problem was that the newly-added properties in the frontmatter of my markdown file didn't show up in my GraphQL.

    All I had to do was to restart the server with 'gatsby-develop'.

提交回复
热议问题