Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
feat(telegram): added Telegram sharing option
Browse files Browse the repository at this point in the history
re #93
  • Loading branch information
victor-pogor committed Mar 29, 2021
1 parent f79d41b commit 7614d2e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ ignoreErrors = ["error-remote-getjson"]
Skype = false
Trello = false
Mix = false
Telegram = false
# Comment config
[params.page.comment]
enable = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ Please open the code block below to view the complete sample configuration :(far
Skype = false
Trello = false
Mix = false
# {{< version 0.1.2 >}}
Telegram = false
# Comment config
[params.page.comment]
enable = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,8 @@ Please open the code block below to view the complete sample configuration :(far
Skype = false
Trello = false
Mix = false
# {{< version 0.1.2 >}}
Telegram = false
# Comment config
[params.page.comment]
enable = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,8 @@ hugo
Skype = false
Trello = false
Mix = false
# {{< version 0.1.2 >}}
Telegram = false
# 评论系统设置
[params.page.comment]
enable = true
Expand Down
7 changes: 7 additions & 0 deletions layouts/partials/plugin/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,11 @@
{{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}}
</a>
{{- end -}}

{{- /* 029: Telegram */ -}}
{{- if $share.Telegram -}}
<a href="javascript:void(0);" title="{{ T `shareOn` }} Telegram" data-sharer="telegram" data-url="{{ .Permalink }}" data-title="{{ .Title }}">
{{- dict "Class" "fab fa-telegram-plane fa-fw" | partial "plugin/icon.html" -}}
</a>
{{- end -}}
{{- end -}}

0 comments on commit 7614d2e

Please sign in to comment.