From 87f425076ac1ba15adad4a449992e0a81b94234d Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 11 Jun 2022 23:27:00 +0800 Subject: [PATCH] feat(social): add Phone social link --- README.md | 2 +- README.zh-cn.md | 2 +- assets/data/social.yml | 8 ++++++++ config.toml | 1 + exampleSite/config.toml | 2 ++ exampleSite/content/about/index.en.md | 2 +- exampleSite/content/about/index.zh-cn.md | 2 +- .../content/posts/theme-documentation-basics/index.en.md | 1 + .../posts/theme-documentation-basics/index.zh-cn.md | 1 + 9 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 61889fa8..86b68774 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ I hope you will LoveIt ❤️! * **Gravatar** supported by [Gravatar](https://gravatar.com) * Local **Avatar** supported -* Up to **68** social links supported +* Up to **69** social links supported * Up to **24** share sites supported * **Disqus** comment system supported by [Disqus](https://disqus.com) * **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk) diff --git a/README.zh-cn.md b/README.zh-cn.md index 3081685e..d709a959 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -80,7 +80,7 @@ * 支持 **[Gravatar](https://gravatar.com)** 头像 * 支持本地**头像** -* 支持多达 **68** 种社交链接 +* 支持多达 **69** 种社交链接 * 支持多达 **24** 种网站分享 * 支持 **[Disqus](https://disqus.com)** 评论系统 * 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统 diff --git a/assets/data/social.yml b/assets/data/social.yml index b324a117..e389bfe8 100644 --- a/assets/data/social.yml +++ b/assets/data/social.yml @@ -539,6 +539,14 @@ kaggle: Icon: Class: fab fa-kaggle fa-fw +# Phone +phone: + Weight: 98 + Template: tel:%v + Title: Phone + Icon: + Class: fas fa-phone fa-fw + # Email email: Weight: 99 diff --git a/config.toml b/config.toml index f2708041..1e5805d7 100644 --- a/config.toml +++ b/config.toml @@ -270,6 +270,7 @@ Pleroma = "" Kaggle = "" Email = "" + Phone = "" RSS = "" # Page global config diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2eec98de..d00e5ca7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -867,6 +867,7 @@ enableEmoji = true Facebook = "xxxx" Telegram = "xxxx" Youtubelegacy = "xxxx" + Phone = "555-555-555" Email = "xxxx@xxxx.com" RSS = true [languages.en.params.social.Mastodon] @@ -961,4 +962,5 @@ enableEmoji = true Devto = "xxxx" Bilibili = "xxxx" Email = "xxxx@xxxx.com" + Phone = "555-555-555" RSS = true diff --git a/exampleSite/content/about/index.en.md b/exampleSite/content/about/index.en.md index 57469e8c..a1f7edf5 100644 --- a/exampleSite/content/about/index.en.md +++ b/exampleSite/content/about/index.en.md @@ -53,7 +53,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 **68** social links supported +* :(far fa-id-card fa-fw): Up to **69** social links supported * :(fas fa-share-square fa-fw): Up to **24** 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 31355d20..b7f221dc 100644 --- a/exampleSite/content/about/index.zh-cn.md +++ b/exampleSite/content/about/index.zh-cn.md @@ -53,7 +53,7 @@ math: * :(far fa-user fa-fw): 支持 **[Gravatar](https://gravatar.com)** 头像 * :(fas fa-user-circle fa-fw): 支持本地**头像** -* :(far fa-id-card fa-fw): 支持多达 **68** 种社交链接 +* :(far fa-id-card fa-fw): 支持多达 **69** 种社交链接 * :(fas fa-share-square fa-fw): 支持多达 **24** 种网站分享 * :(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 f48bcfe0..e1d7ef2d 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -458,6 +458,7 @@ languageName = "English" ORCID = "" Pleroma = "" Kaggle = "" + Phone = "" 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 fd72083b..b7601dbe 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -462,6 +462,7 @@ hasCJKLanguage = true ORCID = "" Pleroma = "" Kaggle = "" + Phone = "" Email = "xxxx@xxxx.com" RSS = true # {{< version 0.2.0 >}}