Skip to content

Commit

Permalink
Add social links for Reddit, Telegram and QQ
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Nov 16, 2020
1 parent 4be0065 commit f81264d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ github = "githubusername"
| `twitter` | Twitter Username |
| `weibo` | Weibo Username |
| `zhihu` | Zhihu Username |
| `reddit` | Reddit Username |
| `telegram` | Telegram Username |
| `qq` | QQ Number |

## Contribute

Expand Down
3 changes: 3 additions & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ github = "githubusername"
| `twitter` | Twitter 用户名 |
| `weibo` | 微博用户名 |
| `zhihu` | 知乎用户名 |
| `reddit` | Reddit 用户名 |
| `telegram` | Telegram 用户名 |
| `qq` | QQ 号 |

## 贡献

Expand Down
3 changes: 3 additions & 0 deletions README.zh-TW.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ github = "githubusername"
| `twitter` | Twitter 使用者名稱 |
| `weibo` | 微博使用者名稱 |
| `zhihu` | 知乎使用者名稱 |
| `reddit` | Reddit 使用者名稱 |
| `telegram` | Telegram 使用者名稱 |
| `qq` | QQ 號 |

## 貢獻

Expand Down
3 changes: 3 additions & 0 deletions exampleSite/config/_default/social.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ zhihu = "zhihuusername"
instagram = "instagramusername"
quora = "quorausername"
tumblr = "tumblrusername"
reddit = "redditusername"
telegram = "telegramusername"
qq = "qqnumber"
4 changes: 4 additions & 0 deletions layouts/partials/footer/social-links.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
{{- $quora := dict "quora" (dict "url" "https://www.quora.com/profile/%s") -}}
{{- $instagram := dict "instagram" (dict "url" "https://www.instagram.com/%s") -}}
{{- $tumblr := dict "tumblr" (dict "url" "https://%s.tumblr.com") -}}
{{- $reddit := dict "reddit" (dict "url" "https://www.reddit.com/user/%s") -}}
{{- $telegram := dict "telegram" (dict "url" "https://t.me/%s") -}}
{{- $qq := dict "qq" (dict "url" "http://wpa.qq.com/msgrd?v=3&uin=%s&site=qq&menu=yes") -}}
{{- $items := merge $github $gitlab $twitter $facebook $linkedin $stackoverflow $weibo $zhihu $quora $instagram $tumblr -}}
{{- $items = merge $items $reddit $telegram $qq -}}
<nav class="social-links nav my-2 justify-content-center">
{{- range $key, $user := .Site.Social -}}
{{- if eq $key "email" -}}
Expand Down

0 comments on commit f81264d

Please sign in to comment.