I have two markdown files, one that references a relative image for its splash image and another that references an external image.
---
cover: relative.jpeg
---
Content Foo
and
---
cover: https://external.com/external_image.jpg
---
Content Zap
I want to reference both images with GraphQL like so
query {
allMarkdownRemark {
edges {
node {
frontmatter {
cover {
childImageSharp {
fluid{
# I'll be using a fragment here instead, but this is a minimal example
src
}
}
}
}
}
}
}
}
Is there a way to have gatsby-image
work with external images? Alternatively, is there a gatsby plugin that will accomplish this?
Thanks in advance!