diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 77908662..e84ea599 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -788,6 +788,7 @@ ignoreErrors = ["error-remote-getjson"] Skype = false Trello = false Mix = false + Telegram = false # Comment config [params.page.comment] enable = true diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 18707c31..a3d9fc17 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -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 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.fr.md b/exampleSite/content/posts/theme-documentation-basics/index.fr.md index 7e59a86b..89ff266f 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.fr.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.fr.md @@ -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 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 e3e37944..24a8da17 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -497,6 +497,8 @@ hugo Skype = false Trello = false Mix = false + # {{< version 0.1.2 >}} + Telegram = false # 评论系统设置 [params.page.comment] enable = true diff --git a/layouts/partials/plugin/share.html b/layouts/partials/plugin/share.html index 941647cb..3273f9f4 100644 --- a/layouts/partials/plugin/share.html +++ b/layouts/partials/plugin/share.html @@ -196,4 +196,11 @@ {{- dict "Class" "fab fa-mix fa-fw" | partial "plugin/icon.html" -}} {{- end -}} + + {{- /* 029: Telegram */ -}} + {{- if $share.Telegram -}} + + {{- dict "Class" "fab fa-telegram-plane fa-fw" | partial "plugin/icon.html" -}} + + {{- end -}} {{- end -}}