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

Social media card images from page metadata #331

Open
choldgraf opened this issue Oct 5, 2022 · 4 comments
Open

Social media card images from page metadata #331

choldgraf opened this issue Oct 5, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@choldgraf
Copy link
Contributor

choldgraf commented Oct 5, 2022

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

@choldgraf choldgraf added the enhancement New feature or request label Oct 5, 2022
@rowanc1

This comment was marked as resolved.

rowanc1 referenced this issue in jupyter-book/mystmd Oct 28, 2022
@choldgraf

This comment was marked as duplicate.

@rowanc1
Copy link
Collaborator

rowanc1 commented May 30, 2023

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:

image

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.

@choldgraf choldgraf transferred this issue from jupyter-book/mystmd Mar 13, 2024
@choldgraf
Copy link
Contributor Author

Moving this to the myst-theme repository, and also noting that I wished this existed again when I was writing the report here:

https://2i2c.org/report-czi-2021/

@choldgraf choldgraf changed the title Auto-generate social media card preview images Social media card images from page metadata Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Needs Prioritisation
Development

No branches or pull requests

2 participants