Skip to content

Commit

Permalink
Fix image url for post detail
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Starosta committed Oct 8, 2023
1 parent 2a863d1 commit c7c870e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/templates/post-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ export default function PostDetail({ data, location }) {
title={`${title.text}`}
lang={lang}
description={summary.text}
image={
hero_image.fluid !== null && hero_image.fluid.src !== null
? hero_image.fluid.src
: false
}
image={hero_image.src}
/>

<Layout location={location}>
Expand Down Expand Up @@ -71,6 +67,7 @@ export const query = graphql`
hero_image {
alt
gatsbyImageData
url
}
title {
text
Expand Down

0 comments on commit c7c870e

Please sign in to comment.