From f498f0fc5fad832127e66d4d3d1f8fe9226fc7c4 Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Fri, 17 Nov 2023 17:39:03 +0100 Subject: [PATCH] adding tootpick for sharing to mastodon https://github.com/Juerd/tootpick https://tootpick.org/ --- config/_default/params.toml | 2 +- data/sharing.json | 5 + static/tootpick.html | 521 ++++++++++++++++++++++++++++++++++++ 3 files changed, 527 insertions(+), 1 deletion(-) create mode 100644 static/tootpick.html diff --git a/config/_default/params.toml b/config/_default/params.toml index 5902ead..6bf81af 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -58,7 +58,7 @@ rssFullContent = false showWordCount = true showComments = false # sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"] - sharingLinks = ["email", "reddit", "twitter", "facebook", "pinterest"] + sharingLinks = ["email", "mastodon", "reddit", "twitter", "facebook", "pinterest"] [list] showBreadcrumbs = false diff --git a/data/sharing.json b/data/sharing.json index 5d1e663..2fafed5 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -4,6 +4,11 @@ "title": "sharing.email", "url": "mailto:?body=%s&subject=Look+at+this:+%s" }, + "mastodon": { + "icon": "mastodon", + "title": "sharing.mastodon", + "url": "/tootpick.html#text=%s -- %s" + }, "facebook": { "icon": "facebook", "title": "sharing.facebook", diff --git a/static/tootpick.html b/static/tootpick.html new file mode 100644 index 0000000..03b1810 --- /dev/null +++ b/static/tootpick.html @@ -0,0 +1,521 @@ + + +Tootpick + + + + + + + + + + + +
+ +
+ Pick your Mastodon server to toot this message: +
+
+
+
+ + + +
+ +
+
+
+ +