|
1 |
| -# good-looking-repository |
| 1 | +# good-looking-repository |
| 2 | + |
| 3 | +This is an experiment how to improve the apearance of GitHub repoository on social media, like Twitter, Facebook and LinkedIn. |
| 4 | + |
| 5 | +Website: [https://set0gut1.github.io/good-looking-repository/](https://set0gut1.github.io/good-looking-repository/) |
| 6 | + |
| 7 | +## Comparison before and after improvement |
| 8 | + |
| 9 | +| media | repository itself | GitHub Page | |
| 10 | +| ---- | ---- | ---- | |
| 11 | +| Twitter |  |  | |
| 12 | +| Facebook |  |  | |
| 13 | +| LinkedIn |  |  | |
| 14 | + |
| 15 | +## Problems at sharing a GitHub repository on social media |
| 16 | + |
| 17 | +Even if you want to display the application's logo when social media sharing, your account profile image (often is a face picture) is used as og:image. |
| 18 | +Your face is also stretched in LinkedIn. This is not good looking. |
| 19 | + |
| 20 | +A message is appended on twitter: "Contribute to <repository-name> development by creating an account on GitHub". |
| 21 | +I think this message is nice, but may not suitable on situation such that portrait list. |
| 22 | + |
| 23 | +## How to improve the appearance of social media |
| 24 | + |
| 25 | +The solution is to create an application website using the appropriate ogp tag and use it for sharing on social media. |
| 26 | +This is easy with the GitHub Pages. |
| 27 | + |
| 28 | +The things you need to do are followings: |
| 29 | + |
| 30 | +1. create some markdown file for website, or reuse README.md |
| 31 | +2. create a logo image (height: 630 / width: 1200 seems to be the best) |
| 32 | +3. create \_config.yml for jekyll configuration |
| 33 | +4. publish these with GitHub Pages |
| 34 | + |
| 35 | +and use the url of GitHub Page for sharing on social media. |
| 36 | + |
| 37 | +## Link to related information |
| 38 | + |
| 39 | +- checking tools for the appearance on social media |
| 40 | + - [Twitter card validator](https://cards-dev.twitter.com/validator/) |
| 41 | + - [Facebook share debugger](https://developers.facebook.com/tools/debug/) |
| 42 | +- [About Jekyll SEO Tag](https://github.com/jekyll/jekyll-seo-tag/tree/master/docs) |
| 43 | +- Issue on github: [Support custom (per repository) og:image thumbnails.](https://github.com/isaacs/github/issues/612) |
0 commit comments