Skip to content

Commit cf542cd

Browse files
committed
write README.md
1 parent 2d9032b commit cf542cd

File tree

9 files changed

+44
-2
lines changed

9 files changed

+44
-2
lines changed

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
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 | ![](img/repo-twitter.png) | ![](img/page-twitter.png) |
12+
| Facebook | ![](img/repo-facebook.png) | ![](img/page-facebook.png) |
13+
| LinkedIn | ![](img/repo-linkedin.png) | ![](img/page-linkedin.png) |
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)

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ defaults:
66
path: ""
77
values:
88
image:
9-
path: /logo.jpg
9+
path: /img/logo.jpg
1010
height: 630
1111
width: 1200

logo.jpg renamed to img/logo.jpg

File renamed without changes.

img/page-facebook.png

132 KB
Loading

img/page-linkedin.png

128 KB
Loading

img/page-twitter.png

104 KB
Loading

img/repo-facebook.png

42 KB
Loading

img/repo-linkedin.png

124 KB
Loading

img/repo-twitter.png

41 KB
Loading

0 commit comments

Comments
 (0)