Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

og:image property seems to be inferred #55

Open
TheStanHo opened this issue Jun 2, 2024 · 2 comments
Open

og:image property seems to be inferred #55

TheStanHo opened this issue Jun 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@TheStanHo
Copy link

TheStanHo commented Jun 2, 2024

Hello!
Been using this lovely theme alot for writing blogs. Apologies if this isn't an issue (not a dev 😅)

I'm having an issue though ever since I deployed the most recent blog the og:image property is not found on the page
2024-06-02 12_46_29-DevTools - thestanho github io_PythonScriptingFabricLibrary_

Where as say for the one for the live demo it is.
2024-06-02 12_46_58-DevTools - gatsby-theme-portfolio-minimal netlify app_my-first-article_

Linkedin Post inspector

When I look at LinkedIn Post inspector for it - here You can see that the image property it is using is not the correct image/url
2024-06-02 12_47_49-Post Inspector

Facebook url inspector

When using the facebook one here.

2024-06-02 13_12_36-Sharing Debugger - Meta for Developers

Question

I'm abit lost onto why this is happening as it has only happened on my most recently deployment but all I've done was add the markdown.md for the article and left the code untouched.

Perhaps it depends on the website. But when I use to post it on LinkedIn the correct image would be inferred for the og:image tag. But looking for the tag via inspect elements I cannot find it being set anymore

You can see in the article markdown here that the banner: src: is pointing to the correct image that would normally be used for the og:image

Any insight in this would be appreciated.

@TheStanHo TheStanHo changed the title og:image property not showing for Articles. og:image property seems to be inferred Jun 2, 2024
@konstantinmuenster
Copy link
Owner

Hey @TheStanHo!

I think I know what might be a bit confusing... the theme doesn't yet support og:image properties for individual blog posts. Your screenshot of the live demo shows the og:image that is referenced inside the settings.json file. If this is set, we use this thumbnail image globally for the entire page.

In your case, since you probably haven't set this property inside settings.json, each site infers an image automatically. So, there's a bit of luck involved.

Ideally, we could extend the theme so that it sets the correct og:image on every blog post. Not sure when I get to that, though 😅

@konstantinmuenster konstantinmuenster added the enhancement New feature or request label Jun 3, 2024
@TheStanHo
Copy link
Author

Hey @konstantinmuenster !

Thanks for the reply, yeah what you said makes sense to me now and I get why it's inferred. You're correct about me not setting it in settings.json

And haha no worries on it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants