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

[docs-infra] OG images are not descriptive #32036

Closed
samuelsycamore opened this issue Mar 29, 2022 · 6 comments · Fixed by #41188
Closed

[docs-infra] OG images are not descriptive #32036

samuelsycamore opened this issue Mar 29, 2022 · 6 comments · Fixed by #41188
Assignees
Labels
new feature New feature or request scope: docs-infra Specific to the docs-infra product

Comments

@samuelsycamore
Copy link
Member

samuelsycamore commented Mar 29, 2022

Summary 💡

When sharing links from MUI's blog or docs, the OG card is a very generic image used across all pages.

Screen Shot 2022-03-29 at 9 26 41 AM

This doesn't give the reader much information about what's inside, and doesn't offer a good reason to click through.

Is there a (not too cumbersome) way to auto-generate these OG images for individual pages? I've seen it done before but have not looked into what it would take to implement on a site like mui.com.

It doesn't need to be complicated—it could just pull the title and description text from the page. For blog posts, it could add the author's name and maybe their avatar as well, and/or tags if those would be useful.

Examples 🌈

Screen Shot 2022-03-29 at 9 35 01 AM

Screen Shot 2022-03-29 at 9 34 24 AM

Motivation 🔦

I believe this would significantly improve our click-through rate on links shared on social media. It would also just make our site and docs look more professional—the current version feels like the OG image is just a kind of "placeholder."

@samuelsycamore samuelsycamore added docs Improvements or additions to the documentation status: waiting for maintainer These issues haven't been looked at yet by a maintainer website Pages that are not documentation-related, marketing-focused. labels Mar 29, 2022
@mnajdova mnajdova removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Apr 6, 2022
@mnajdova mnajdova assigned samuelsycamore and unassigned hbjORbj Apr 6, 2022
@danilo-leal
Copy link
Contributor

I guess @alexfauquette could help out with this one! He was already playing with automatically generated banners for new X releases — guess that tackling this would be a natural next step?!

@alexfauquette
Copy link
Member

alexfauquette commented Apr 11, 2022

What I did is not complete automation. It's more like an interface, where you put the text/emoticones, and you get the card in png

https://github.com/mui/card-generator

I assume we need a template for

  • blogpost with title and authors
  • release with version number and highlights

Even if the current solution is not automatic, I believe that if getting the card is straightforward (run this command and enter your title) it will be an improvement

@samuelsycamore
Copy link
Member Author

That is excellent @alexfauquette! I guess we would also need to be able to insert these into each page, probably as front matter?

@oliviertassinari
Copy link
Member

In the case of the social card for docs pages, custom images could be explored alongside https://www.notion.so/mui-org/SEO-SERP-Image-75bc177fefe64c0b899a42a6f919a907.

@samuelsycamore samuelsycamore changed the title [docs] OG images are not descriptive [docs-infra] OG images are not descriptive Sep 6, 2023
@danilo-leal danilo-leal added scope: docs-infra Specific to the docs-infra product and removed docs Improvements or additions to the documentation website Pages that are not documentation-related, marketing-focused. labels Feb 1, 2024
@alexfauquette
Copy link
Member

Fixed, except for branding pages

https://www.opengraph.xyz/url/https%3A%2F%2Fmui.com%2Fmaterial-ui%2Freact-autocomplete%2F

@samuelsycamore I propose to close this issue, and start a new one listing the branding pages for which we would like a custom OG card by priority order

@danilo-leal
Copy link
Contributor

Woohoo! I think it's okay to have custom-designed OG cards for the marketing pages. It's better to have more flexibility there—not sure we need to automatize that. Thus, it seems like we can definitely cross this one off :)

@oliviertassinari oliviertassinari added the new feature New feature or request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request scope: docs-infra Specific to the docs-infra product
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants