mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-04-27 06:06:20 +02:00
feat(share): share to Telegram
This commit is contained in:
parent
148010ddd5
commit
ae157d7d73
9 changed files with 18 additions and 5 deletions
|
@ -86,7 +86,7 @@ I hope you will LoveIt ❤️!
|
|||
* **Gravatar** supported by [Gravatar](https://gravatar.com)
|
||||
* Local **Avatar** supported
|
||||
* Up to **76** social links supported
|
||||
* Up to **26** share sites supported
|
||||
* Up to **27** share sites supported
|
||||
* **Disqus** comment system supported by [Disqus](https://disqus.com)
|
||||
* **Gitalk** comment system supported by [Gitalk](https://github.com/gitalk/gitalk)
|
||||
* **Valine** comment system supported by [Valine](https://valine.js.org/)
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
* 支持 **[Gravatar](https://gravatar.com)** 头像
|
||||
* 支持本地**头像**
|
||||
* 支持多达 **76** 种社交链接
|
||||
* 支持多达 **26** 种网站分享
|
||||
* 支持多达 **27** 种网站分享
|
||||
* 支持 **[Disqus](https://disqus.com)** 评论系统
|
||||
* 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统
|
||||
* 支持 **[Valine](https://valine.js.org/)** 评论系统
|
||||
|
|
|
@ -54,7 +54,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 **76** social links supported
|
||||
* :(fas fa-share-square fa-fw): Up to **26** share sites supported
|
||||
* :(fas fa-share-square fa-fw): Up to **27** 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)
|
||||
* :(far fa-comment-alt fa-fw): **Valine** comment system supported by [Valine](https://valine.js.org/)
|
||||
|
|
|
@ -54,7 +54,7 @@ math:
|
|||
* :(far fa-user fa-fw): 支持 **[Gravatar](https://gravatar.com)** 头像
|
||||
* :(fas fa-user-circle fa-fw): 支持本地**头像**
|
||||
* :(far fa-id-card fa-fw): 支持多达 **76** 种社交链接
|
||||
* :(fas fa-share-square fa-fw): 支持多达 **26** 种网站分享
|
||||
* :(fas fa-share-square fa-fw): 支持多达 **27** 种网站分享
|
||||
* :(far fa-comment fa-fw): 支持 **[Disqus](https://disqus.com)** 评论系统
|
||||
* :(far fa-comment-dots fa-fw): 支持 **[Gitalk](https://github.com/gitalk/gitalk)** 评论系统
|
||||
* :(far fa-comment-alt fa-fw): 支持 **[Valine](https://valine.js.org/)** 评论系统
|
||||
|
|
|
@ -587,6 +587,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
|
|||
Trello = false
|
||||
Diaspora = true # {{< version 0.3.1 >}}
|
||||
Mix = false
|
||||
Telegram = true # {{< version 0.3.1 >}}
|
||||
# {{< version 0.2.0 changed >}} Comment config
|
||||
[params.page.comment]
|
||||
enable = false
|
||||
|
|
|
@ -589,6 +589,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
|
|||
Trello = false
|
||||
Diaspora = true # {{< version 0.3.1 >}}
|
||||
Mix = false
|
||||
Telegram = true # {{< version 0.3.1 >}}
|
||||
# {{< version 0.2.0 changed >}} 评论系统设置
|
||||
[params.page.comment]
|
||||
enable = false
|
||||
|
|
|
@ -489,6 +489,7 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
|
|||
Trello = false
|
||||
Diaspora = true
|
||||
Mix = false
|
||||
Telegram = true
|
||||
# Comment config
|
||||
# 评论系统设置
|
||||
[params.page.comment]
|
||||
|
|
|
@ -385,6 +385,7 @@
|
|||
[params.page.share]
|
||||
enable = true
|
||||
X = true
|
||||
Threads = true
|
||||
Facebook = true
|
||||
Linkedin = false
|
||||
Whatsapp = false
|
||||
|
@ -406,7 +407,9 @@
|
|||
Evernote = false
|
||||
Skype = false
|
||||
Trello = false
|
||||
Diaspora = true
|
||||
Mix = false
|
||||
Telegram = true
|
||||
# Comment config
|
||||
# 评论系统设置
|
||||
[params.page.comment]
|
||||
|
|
|
@ -182,8 +182,15 @@
|
|||
|
||||
{{- /* 026: Mix */ -}}
|
||||
{{- if $share.Mix -}}
|
||||
<a href="//mix.com/add?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T `shareOn` }} Mix">
|
||||
<a href="https://mix.com/add?url={{ .Permalink }}&description={{ .Title }}" target="_blank" title="{{ T `shareOn` }} Mix">
|
||||
{{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- /* 027: Telegram */ -}}
|
||||
{{- if $share.Telegram -}}
|
||||
<a href="https://t.me/share/url?url={{ .Permalink }}&text={{ .Title }}" target="_blank" title="{{ T `shareOn` }} Telegram">
|
||||
{{- dict "Class" "fab fa-telegram fa-fw" | partial "plugin/icon.html" -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Add table
Reference in a new issue