From 77fd6ef9b09e78c76be3cf76d3fcd21ed1346bf8 Mon Sep 17 00:00:00 2001 From: PCloud <52968553+HEIGE-PCloud@users.noreply.github.com> Date: Sat, 24 Jul 2021 22:14:22 +0800 Subject: [PATCH] feat: add new social links (#153) - Add Liberapay links - Add Ko-Fi links --- assets/data/social.yml | 25 ++++++++++++++++--- exampleSite/config.toml | 4 +++ .../theme-documentation-basics/index.en.md | 2 ++ .../theme-documentation-basics/index.zh-cn.md | 2 ++ package-lock.json | 10 +++++++- 5 files changed, 38 insertions(+), 5 deletions(-) diff --git a/assets/data/social.yml b/assets/data/social.yml index a34ba7aba..7aeaaadfd 100644 --- a/assets/data/social.yml +++ b/assets/data/social.yml @@ -501,17 +501,34 @@ orcid: Icon: Class: fab fa-orcid fa-fw -# 064: Email -email: +# 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: ko-fi + + +# 066: Email +email: + Weight: 66 Template: mailto:%v Title: Email Icon: Class: far fa-envelope fa-fw -# 065: RSS +# 067: RSS rss: - Weight: 65 + Weight: 67 Url: /index.xml Title: RSS Newtab: true diff --git a/exampleSite/config.toml b/exampleSite/config.toml index b9fb6abf5..09207432e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -246,6 +246,8 @@ enableEmoji = true Matrix = "" Bilibili = "" ORCID = "" + Liberapay = "xxx" + Ko-Fi = "xxx" Email = "xxxx@xxxx.com" RSS = true [languages.en.params.social.Mastodon] @@ -473,6 +475,8 @@ enableEmoji = true Matrix = "" Bilibili = "xxxx" ORCID = "" + Liberapay = "" + Ko-Fi = "" Email = "xxxx@xxxx.com" RSS = true diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index e7a4657ed..e4c1aa84f 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -411,6 +411,8 @@ Please open the code block below to view the complete sample configuration :(far Matrix = "" Bilibili = "" ORCID = "" + Liberapay = "" + Ko-Fi = "" 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 d163834b6..c1909501a 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -415,6 +415,8 @@ hugo Matrix = "" Bilibili = "" ORCID = "" + Liberapay = "" + Ko-Fi = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}} diff --git a/package-lock.json b/package-lock.json index 03e0fbc20..c28600ef7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4884,6 +4884,13 @@ "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "requires": { "minimist": "^1.2.5" + }, + "dependencies": { + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + } } }, "jsonparse": { @@ -5051,7 +5058,8 @@ "minimist": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true }, "mixin-deep": { "version": "1.3.2",