Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/template-parts/blog-post.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ function BlogPost({ data }) {
{title}
</Heading>

{!!featuredImage?.node?.remoteFile?.childImageSharp && (
{!!featuredImage?.node?.localFile?.childImageSharp && (
<Box mb={5}>
<Img fluid={featuredImage.node.remoteFile.childImageSharp.fluid} />
<Img fluid={featuredImage.node.localFile.childImageSharp.fluid} />
</Box>
)}

Expand Down
6 changes: 3 additions & 3 deletions src/templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default ({ data, pageContext }) => (
<Box p={5} shadow="md" borderWidth="1px">
<Grid templateColumns="1fr 2fr" gap={6}>
<Box>
{!!page?.featuredImage?.node?.remoteFile?.childImageSharp && (
{!!page?.featuredImage?.node?.localFile?.childImageSharp && (
<Img
fluid={
page.featuredImage.node.remoteFile.childImageSharp.fluid
page.featuredImage.node.localFile.childImageSharp.fluid
}
/>
)}
Expand Down Expand Up @@ -99,7 +99,7 @@ export const query = graphql`
title
featuredImage {
node {
remoteFile {
localFile {
...Thumbnail
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/single/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const query = graphql`
content
featuredImage {
node {
remoteFile {
localFile {
...HeroImage
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/single/Post.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const query = graphql`
content
featuredImage {
node {
remoteFile {
localFile {
...HeroImage
}
}
Expand Down