Skip to content

[minimal-blog]: Banner Image doesn't show up on the posts #637

Discussion options

You must be logged in to vote

Hi, thanks for the issue!

The banner property of the frontmatter is intended for the og:image part of the <head />:

image={post.banner ? post.banner.childImageSharp.resize.src : undefined}

It gets passed to the <SEO /> component. I didn't intend to show a image of some sort there. You could shadow https://github.com/LekoArts/gatsby-themes/blob/master/themes/gatsby-theme-minimal-blog-core/src/templates/post-query.tsx to add another query for the banner to e.g. also use it in your blog post template (you would need to shadow https://github.com/LekoArts/gatsby-themes/blob/master/themes…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jsg2021
Comment options

@jsg2021
Comment options

@jsg2021
Comment options

Answer selected by LekoArts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question
3 participants
Converted from issue

This discussion was converted from issue #366 on August 10, 2021 07:45.