-
Notifications
You must be signed in to change notification settings - Fork 105
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 (share preview data)? #863
Comments
That would be great |
🤔 so I looked into it and the tags should already be present: confs.tech/src/components/Head/Head.tsx Line 38 in dff70e0
...but they're not present on the deployed site, or even when served from the build folder locally after |
Hey @JoshuaKGoldberg ! They are present, but on the rendered site. It appears after react loads. It is possible that opengraph only checks the HTML that the server renders and not what is rendered with JavaScript. In that case, you might have to update https://github.com/tech-conferences/confs.tech/blob/main/public/index.html instead 🤔 |
Would it be possible to change the deployment strategy to pre-render the site? I could send a PR to add some basic meta tags in the meantime but that seems to me like a bandaid fix that adds duplicate code. |
Probably. It's currently deployed through Heroku as a static site. I'm not so sure what we need to update to get the site to be SSR. We probably would have to have a Node.js server doing it. |
👋 Long-time user, first-time reporter here - love the site!
The confs.tech URL doesn't show very much when shared in social preview locations like Bluesky or Discord. You can see previews of common sites on https://www.opengraph.xyz/url/https%3A%2F%2Fconfs.tech%2F. Here's what I get sharing on Bluesky today:
Would you accept a PR adding some basic HTML meta tags for a nicer share preview?
The text was updated successfully, but these errors were encountered: