From dc1ea3dfaadaf5f93dfe09544a78d52129e8b635 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sat, 25 Nov 2023 13:14:06 +0800 Subject: [PATCH] feat: add sharing to telegram --- data/sharing.json | 5 +++++ exampleSite/config/_default/params.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/sharing.json b/data/sharing.json index fa7ea432..c33694d0 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -33,5 +33,10 @@ "icon": "twitter", "title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + }, + "telegram": { + "icon": "telegram", + "title": "sharing.telegram", + "url": "https://telegram.me/share/url?text=%s&url=%s" } } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index d828f120..6ddecf7c 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -50,7 +50,7 @@ fingerprintAlgorithm = "sha256" showTaxonomies = false showWordCount = false showComments = false - # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email"] + # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line"] [list] showBreadcrumbs = true