Skip to content

Commit

Permalink
add mastodon general sharer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémy Garniaux authored and Jérémy Garniaux committed Apr 22, 2024
1 parent e0c8ba3 commit e6c8601
Showing 1 changed file with 27 additions and 14 deletions.
41 changes: 27 additions & 14 deletions data/page_sharer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand All @@ -33,21 +25,42 @@
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"
url = "https://service.weibo.com/share/share.php?url={url}&title={title}"
title = "Weibo"
icon_pack = "fab"
icon = "weibo"
enable = true
enable = false

[[buttons]]
id = "reddit"
Expand Down

0 comments on commit e6c8601

Please sign in to comment.