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

feat(telegram): added Telegram sharing option #146

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: auto-merge

on:
pull_request:
pull_request

jobs:
auto-merge:
Expand Down
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 -}}