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

📊 Add SEO image for homepage #1491

Open
joseph-allen opened this issue May 26, 2024 · 5 comments
Open

📊 Add SEO image for homepage #1491

joseph-allen opened this issue May 26, 2024 · 5 comments
Labels
enhancement New feature or request waiting info

Comments

@joseph-allen
Copy link

All posts generate with SEO thumbnails, but linking to the thumbnail seems to pull the logo by default, which doesn't look normal for my website.

One line can be added to partials/head.html changing this.
Combining with one of teh config params.

@nunocoracao
Copy link
Owner

Hello @joseph-allen can you give me an example of what you would be expecting to see in the final code?

@joseph-allen
Copy link
Author

I've put
<meta property="og:image" content="/posts/aquariums-and-japan/fuji.jpg">
Just to use an asset served in a blog post.

Something like
<meta property="og:image" content={{ .Site.Language.Params.seoImage }}> in layouts/partials/head.html

And adding that property in params.toml with a default.

The blowfish site has no image https://www.opengraph.xyz/url/https%3A%2F%2Fblowfish.page%2F in these cases some social media will lift any image on the page, which for me is my logo.

This is on Facebook messenger
Screenshot 2024-05-27 at 11 32 27 am

@nunocoracao nunocoracao changed the title Add SEO image for homepage 📊 Add SEO image for homepage Jun 3, 2024
@nunocoracao
Copy link
Owner

@joseph-allen so this is just for the image tag for the homepage specifically?
sorry just want to double check

@nunocoracao nunocoracao added the enhancement New feature or request label Jun 3, 2024
@joseph-allen
Copy link
Author

Yes, I think all other pages, or at least the posts generate a SEO image automatically.

@rothgar
Copy link

rothgar commented Oct 20, 2024

I was looking for this feature too. I realized you you put a featured.png in the content folder hugo automatically use it for the open graph image on the home page.

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

No branches or pull requests

3 participants