From e6c86015c7d59ba4bc9ec576153be4ea9047f2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Garniaux?= Date: Mon, 22 Apr 2024 14:41:54 +0200 Subject: [PATCH] add mastodon general sharer --- data/page_sharer.toml | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/data/page_sharer.toml b/data/page_sharer.toml index 66e2d97..3e3a27f 100755 --- a/data/page_sharer.toml +++ b/data/page_sharer.toml @@ -2,19 +2,11 @@ # Documentation: https://docs.hugoblox.com/hugo-tutorials/page-sharer/ [[buttons]] - id = "twitter" - url = "https://twitter.com/intent/tweet?url={url}&text={title}" - title = "Twitter" + id = "mastodon" + url = "https://mastodonshare.com/share" + title = "Mastodon" icon_pack = "fab" - icon = "twitter" - enable = true - -[[buttons]] - id = "facebook" - url = "https://www.facebook.com/sharer.php?u={url}&t={title}" - title = "Facebook" - icon_pack = "fab" - icon = "facebook" + icon = "mastodon" enable = true [[buttons]] @@ -33,13 +25,34 @@ icon = "linkedin-in" enable = true +[[buttons]] + id = "twitter" + url = "https://twitter.com/intent/tweet?url={url}&text={title}" + title = "Twitter" + icon_pack = "fab" + icon = "twitter" + enable = true + +[[buttons]] + id = "facebook" + url = "https://www.facebook.com/sharer.php?u={url}&t={title}" + title = "Facebook" + icon_pack = "fab" + icon = "facebook" + enable = true + + + + + + [[buttons]] id = "whatsapp" url = "whatsapp://send?text={title}%20{url}" title = "WhatsApp" icon_pack = "fab" icon = "whatsapp" - enable = true + enable = false [[buttons]] id = "weibo" @@ -47,7 +60,7 @@ title = "Weibo" icon_pack = "fab" icon = "weibo" - enable = true + enable = false [[buttons]] id = "reddit"