【发布时间】:2020-03-08 22:41:27
【问题描述】:
我有两个 markdown 文件,一个为其启动图像引用相对图像,另一个引用外部图像。
---
cover: relative.jpeg
---
Content Foo
和
---
cover: https://external.com/external_image.jpg
---
Content Zap
我想像这样用 GraphQL 引用这两个图像
query {
allMarkdownRemark {
edges {
node {
frontmatter {
cover {
childImageSharp {
fluid{
# I'll be using a fragment here instead, but this is a minimal example
src
}
}
}
}
}
}
}
}
有没有办法让gatsby-image 处理外部图像?或者,是否有一个 gatsby 插件可以做到这一点?
提前致谢!
【问题讨论】:
标签: gatsby gatsby-image