![]() Then, when that platform shows a preview of your website, it’ll use the information it found. When a crawler (like Twitter’s crawling bot, which activates any time you share a link on Twitter) looks at your page, it’ll see those meta tags and grab the image. In addition to the image, we also define a number of other meta tags that are used for rendering information outside of GitHub, like og:title and og:description. You’d declare something like this in your HTML: Open Graph is a set of standards for websites to be able to declare metadata that other platforms can pick out, to get a TL DR of the page. We create similar cards for issues, pull requests and commits, with more resources coming soon (like Discussions, Releases and Gists): Open Graph image for a pull request Open Graph image for a commit Open Graph image for, you guessed it, an issue What’s going on behind the scenes? A quick intro to Open Graph Now, we generate a new image for you on-the-fly when you share a link to a repository somewhere: We do have custom repository images, and you can still use those to give your project some bespoke branding-but most people don’t upload a custom image for their repositories, so we wanted to create a better default experience for every repo on GitHub. Plus, there’s not a lot of quick information here, aside from the plaintext title and description. We heard from you that seeing the author’s face was unexpected. Before the updateīefore, when you shared a link to a repository on any social media platform, you’d see something like this: We recently set about creating a framework and service for automatically generating social sharing images for repositories and other resources on GitHub. ![]() ![]() You know that feeling when you make your latest hack project public, and you’re ready to share it with the world? And when you go to Twitter to post a link to your repository, you just see a big picture of yourself? We wanted to make that a better experience.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |