我在Netlify CMS中使用Gatsby,在Netlify CMS中预览模板时遇到了问题。
有一个可以像预期的那样工作。它从markdown和frontmatter获取数据,并与Netlify CMS小部件链接,还有一个通过useStaticQuery钩子获取数据的组件。This is likely a bug in Gatsby and if refreshing the page does not fix it, please open an issue in https://github.com/ga
所以我有一个图像组件,可以渲染两个不同的图像,但我希望能够将图像组件添加到任何页面,并将特定图像作为道具传递进来,而不是必须为我需要使用的每个图像硬编码一个新的查询。有没有办法在gatsby中使用graphql做到这一点?下面是我当前的图像组件代码 import { graphql, useStaticQuery } from "gatsby"
import Img from "gatsby-imageconst d