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 support for Open Graph tags #35

Merged
merged 1 commit into from
Oct 29, 2024
Merged

Conversation

runofthemillgeek
Copy link
Contributor

This change will allow us to use the images property in frontmatter to display a cover image when sharing links to content in social media.

Open Graph support is provided out of the box with Hugo and is a one-line change. See docs: https://gohugo.io/templates/embedded/#open-graph

Here's an example of an article from my site using this change locally: https://www.opengraph.xyz/url/https%3A%2F%2Fblog.sangeeth.dev%2Fposts%2Fthanos-snap-safari-sequoia%2F

This change will allow us to use the `images` property in frontmatter to display a cover image when sharing links to content in social media.

Open Graph support is provided out of the box with Hugo and is a one-line change. See docs: https://gohugo.io/templates/embedded/#open-graph
@tomfran tomfran merged commit e6e3d41 into tomfran:main Oct 29, 2024
@runofthemillgeek runofthemillgeek deleted the patch-1 branch October 29, 2024 18:08
tomfran added a commit that referenced this pull request Oct 30, 2024
tomfran added a commit that referenced this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants