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 opengraph meta tags #3247

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Add opengraph meta tags #3247

merged 1 commit into from
Feb 6, 2025

Conversation

wader
Copy link
Member

@wader wader commented Feb 3, 2025

Makes the site preview a bit nicer when sharing

@itchyny itchyny added the site label Feb 4, 2025
@wader wader force-pushed the opengraph-tags branch 2 times, most recently from edadd43 to 4e02f5a Compare February 6, 2025 10:17
@wader wader force-pushed the opengraph-tags branch 2 times, most recently from 31f964b to 0eb49c4 Compare February 6, 2025 10:32
<meta property="og:description" content="jq is a lightweight and flexible command-line JSON processor">
<meta property="og:type" content="website">
<meta property="og:image" content="{{ url }}{{ root }}/icon.png">
<meta property="og:url" content="{{ url }}{{ root }}/{{ permalink }}">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah this should probably not have root, fixing

Makes the site preview a bit nicer when sharing
@emanuele6
Copy link
Member

Should we just remove {{ root }} since it's not used? Now <ref name=canonical> is {{ url }}/{{ permalink }} while <meta property=og:url> is {{ url }}{{ root }}/{{ permalink }}; I don't know which one is right

@emanuele6
Copy link
Member

Never mind, now they are the same :)

@wader
Copy link
Member Author

wader commented Feb 6, 2025

Never mind, now they are the same :)

👍 yeah i noticed my own confusion hehe

Copy link
Contributor

@itchyny itchyny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@itchyny itchyny merged commit e33578a into master Feb 6, 2025
30 checks passed
@itchyny itchyny deleted the opengraph-tags branch February 6, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants