-
Notifications
You must be signed in to change notification settings - Fork 14
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
Social media card images from page metadata #331
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
Ah nice. Yes, that would be great, I do think this might be better in the theme-repository. Recently we did something like this for a journal: That implementation required a server running to serve the thumbnails dynamically, but we could compute them up front as well for myst. If we leave this as part of the theme then I think we can be opinionated about the styles and do something that is nice, and has a good fallback when no image is included. |
Moving this to the myst-theme repository, and also noting that I wished this existed again when I was writing the report here: |
Context
When users share links on social media, a growing trend is to automatically generate an image that contains metadata about the link. For example, here are the cards that GitHub generates for any GitHub link:
And here's an example of what Jupyter Book generates now (it is modeled after GitHub)
We should add functionality to generate social media preview images for the MyST themes (or, as a plugin). This could be triggered with a flag, or be the default behavior unless a user explicitly provides their own thumbnail image.
References and links
Tasks and updates
The text was updated successfully, but these errors were encountered: