From 7859589e4f5d175b39350a247d6b38b7f70dc5dc Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sat, 19 Feb 2022 13:50:27 +0800 Subject: [PATCH] :sparkles: Feat: add 9 newly supported social links (#17) --- assets/data/social.yml | 79 ++++++++++++++++++- assets/svg/icons/csdn.svg | 1 + exampleSite/config.toml | 9 +++ exampleSite/content/about/index.en.md | 2 +- exampleSite/content/about/index.zh-cn.md | 2 +- .../theme-documentation-basics/index.en.md | 9 +++ .../theme-documentation-basics/index.zh-cn.md | 9 +++ 7 files changed, 105 insertions(+), 6 deletions(-) create mode 100644 assets/svg/icons/csdn.svg diff --git a/assets/data/social.yml b/assets/data/social.yml index c2cc2b62..9eefc1bd 100644 --- a/assets/data/social.yml +++ b/assets/data/social.yml @@ -493,17 +493,88 @@ bilibili: Icon: Src: svg/icons/bilibili.svg -# 063: Email -email: +# 063: ORCID +orcid: Weight: 63 + Prefix: https://orcid.org/ + Title: ORCID + Icon: + Class: fab fa-orcid fa-fw + +# 064 Liberapay +liberapay: + Weight: 64 + Prefix: https://liberapay.com/ + Title: Liberapay + Icon: + Simpleicons: liberapay + +# 065 Ko-Fi +ko-fi: + Weight: 65 + Prefix: https://ko-fi.com/ + Title: Ko-Fi + Icon: + Simpleicons: kofi + +# 066: BuyMeaCoffee +buymeacoffee: + Weight: 66 + Prefix: https://www.buymeacoffee.com/ + Title: BuyMeaCoffee + Icon: + Simpleicons: buymeacoffee + +# 067: Linktree +linktree: + Weight: 67 + Prefix: https://linktr.ee/ + Title: Linktree + Icon: + Simpleicons: linktree + +# 068: QQ +qq: + Weight: 68 + Template: https://wpa.qq.com/msgrd?v=3&uin=%v&site=qq&menu=yes + Title: QQ + Icon: + Simpleicons: tencentqq + +# 069: QQGroup +qqgroup: + Weight: 69 + Template: https://qm.qq.com/cgi-bin/qm/qr?k=%v&jump_from=webapi + Title: QQGroup + Icon: + Class: fas fa-users + +# 070: Diaspora +diaspora: + Weight: 70 + Title: diaspora* + Icon: + Simpleicons: diaspora + +# 071: CSDN +csdn: + Weight: 71 + Prefix: https://blog.csdn.net/ + Title: CSDN + Icon: + Src: svg/icons/csdn.svg + +# 072: Email +email: + Weight: 72 Template: mailto:%v Title: Email Icon: Class: far fa-envelope fa-fw -# 064: RSS +# 073: RSS rss: - Weight: 64 + Weight: 73 Url: /index.xml Title: RSS Newtab: true diff --git a/assets/svg/icons/csdn.svg b/assets/svg/icons/csdn.svg new file mode 100644 index 00000000..ba232af0 --- /dev/null +++ b/assets/svg/icons/csdn.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ce18e945..52b24161 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -238,6 +238,15 @@ enableEmoji = true XMPP = "" Matrix = "" Bilibili = "" + ORCID = "" + Liberapay = "" + Ko-Fi = "" + BuyMeaCoffee = "" + Linktree = "" + QQ = "" + QQGroup = "" + Diaspora = "" + CSDN = "" Email = "xxxx@xxxx.com" RSS = true [languages.en.params.social.Mastodon] diff --git a/exampleSite/content/about/index.en.md b/exampleSite/content/about/index.en.md index 0a06974a..2ae18b7b 100644 --- a/exampleSite/content/about/index.en.md +++ b/exampleSite/content/about/index.en.md @@ -50,7 +50,7 @@ math: * :(far fa-user fa-fw): **Gravatar** supported by [Gravatar](https://gravatar.com) * :(fas fa-user-circle fa-fw): Local **Avatar** supported -* :(far fa-id-card fa-fw): Up to **64** social links supported +* :(far fa-id-card fa-fw): Up to **73** social links supported * :(fas fa-share-square fa-fw): Up to **28** share sites supported * :(far fa-comment fa-fw): **Disqus** comment system supported by [Disqus](https://disqus.com) * :(far fa-comment-dots fa-fw): **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) diff --git a/exampleSite/content/about/index.zh-cn.md b/exampleSite/content/about/index.zh-cn.md index 97bbee96..83559d70 100644 --- a/exampleSite/content/about/index.zh-cn.md +++ b/exampleSite/content/about/index.zh-cn.md @@ -50,7 +50,7 @@ math: * :(far fa-user fa-fw): 支持 **[Gravatar](https://gravatar.com)** 头像 * :(fas fa-user-circle fa-fw): 支持本地**头像** -* :(far fa-id-card fa-fw): 支持多达 **64** 种社交链接 +* :(far fa-id-card fa-fw): 支持多达 **73** 种社交链接 * :(fas fa-share-square fa-fw): 支持多达 **28** 种网站分享 * :(far fa-comment fa-fw): 支持 **[Disqus](https://disqus.com)** 评论系统 * :(far fa-comment-dots fa-fw): 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 4c415e01..ba16a903 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -399,6 +399,15 @@ Please open the code block below to view the complete sample configuration :(far XMPP = "" Matrix = "" Bilibili = "" + ORCID = "" + Liberapay = "" + Ko-Fi = "" + BuyMeaCoffee = "" + Linktree = "" + QQ = "" + QQGroup = "" + Diaspora = "" + CSDN = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index ca508bfa..1d9bd622 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -410,6 +410,15 @@ hugo XMPP = "" Matrix = "" Bilibili = "" + ORCID = "" + Liberapay = "" + Ko-Fi = "" + BuyMeaCoffee = "" + Linktree = "" + QQ = "" + QQGroup = "" + Diaspora = "" + CSDN = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}}