Add support for sharing articles on Threads

Fixes: #869
This commit is contained in:
James Panther
2024-05-01 16:35:59 +10:00
parent 62a8c979b1
commit c0dca40120
35 changed files with 40 additions and 4 deletions
+1
View File
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Umami Analytics support ([#832](https://github.com/jpanther/congo/pull/832))
- Theme parameter to set a default HTML theme colour ([#849](https://github.com/jpanther/congo/pull/849))
- New icon for `bluesky` ([#851](https://github.com/jpanther/congo/pull/851))
- Support for article sharing to Threads ([#869](https://github.com/jpanther/congo/issues/869))
### Changed
+1
View File
@@ -55,6 +55,7 @@ title = "Congo"
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
# { steam = "https://steamcommunity.com/profiles/userid" },
# { telegram = "https://t.me/username" },
# { threads = "https://threads.net/@username" },
# { tiktok = "https://tiktok.com/@username" },
# { tumblr = "https://username.tumblr.com" },
# { twitch = "https://twitch.tv/username" },
+2 -2
View File
@@ -53,7 +53,7 @@ fingerprintAlgorithm = "sha256"
showTaxonomies = false
showWordCount = false
showComments = false
# sharingLinks = ["facebook", "x-twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"]
# sharingLinks = ["facebook", "x-twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "threads", "telegram", "line", "weibo"]
[list]
showBreadcrumbs = false
@@ -78,7 +78,7 @@ fingerprintAlgorithm = "sha256"
# script = ""
#[umamiAnalytics]
# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# site = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# region = "eu" # can be either "eu" or "us"
[verification]
+5
View File
@@ -39,6 +39,11 @@
"title": "sharing.x-twitter",
"url": "https://x.com/intent/tweet/?url=%s&text=%s"
},
"threads": {
"icon": "threads",
"title": "sharing.threads",
"url": "https://www.threads.net/intent/post?text=%s %s"
},
"telegram": {
"icon": "telegram",
"title": "sharing.telegram",
+1 -1
View File
@@ -52,7 +52,7 @@ fingerprintAlgorithm = "sha256"
showTaxonomies = false
showWordCount = false
showComments = false
# sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"]
# sharingLinks = ["facebook", "x-twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "threads", "telegram", "line", "weibo"]
[list]
showBreadcrumbs = true
@@ -166,7 +166,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
|`article.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed.|
|`article.showWordCount`|`false`|Whether or not article word counts are displayed.|
|`article.showComments`|`false`|Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer.|
|`article.sharingLinks`|_Not set_|An array of sharing links to display at the end of each article. Valid options include `facebook`, `x-twitter`, `mastodon`, `pinterest`, `reddit`, `linkedin`, `email`, `telegram` and `line`. When not provided, or set to `false`, no links will be displayed.|
|`article.sharingLinks`|_Not set_|An array of sharing links to display at the end of each article. Valid options include `facebook`, `x-twitter`, `mastodon`, `pinterest`, `reddit`, `linkedin`, `email`, `threads`, `telegram` and `line`. When not provided, or set to `false`, no links will be displayed.|
|`list.showBreadcrumbs`|`false`|Whether or not breadcrumbs are displayed in the header on list pages.|
|`list.showTableOfContents`|`false`|Whether or not the table of contents is displayed on list pages.|
|`list.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed on list pages.|
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "تثبيت على بينتريست"
reddit: "نشر على ريديت"
twitter: "تغريد على تويتر"
# threads: "Post on Threads"
telegram: "شارك على تيليجرام"
line: "شارك على لاين"
# weibo: "Share on Weibo"
+1
View File
@@ -52,6 +52,7 @@ sharing:
reddit: "Публикуване в Reddit"
twitter: "Туит в Twitter"
telegram: "Споделете в Telegram"
# threads: "Post on Threads"
line: "Споделете в LINE"
weibo: "Споделете в Weibo"
# x-twitter: "Post on X"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "পিন্টারেস্টে পিন করুন"
reddit: "রেড্ডিটে জমা দিন"
twitter: "ট্যুইট করুন"
# threads: "Post on Threads"
telegram: "টেলিগ্রামে শেয়ার করুন"
line: "লাইনে শেয়ার করুন"
# weibo: "Share on Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin na Pinterest"
reddit: "Odeslat na Reddit"
twitter: "Tweet na Twitter"
# threads: "Post on Threads"
telegram: "Sdílejte na Telegram"
line: "Sdílejte na LINE"
weibo: "Sdílejte na Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Auf Pinterest pinnen"
reddit: "An Reddit senden"
twitter: "Auf Twitter teilen"
# threads: "Post on Threads"
telegram: "Auf Telegram teilen"
line: "Auf LINE teilen"
weibo: "Auf Weibo teilen"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin on Pinterest"
reddit: "Submit to Reddit"
twitter: "Tweet on Twitter"
threads: "Post on Threads"
telegram: "Share on Telegram"
line: "Share on LINE"
weibo: "Share on Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pinear en Pinterest"
reddit: "Publicar en Reddit"
twitter: "Tuitear en Twitter"
# threads: "Post on Threads"
telegram: "Compartir en Telegram"
line: "Compartir en LINE"
weibo: "Compartir en Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Kiinnitä Pinterestiin"
reddit: "Lähetä Reddittiin"
twitter: "Twiittaa Twitterissä"
# threads: "Post on Threads"
telegram: "Jaa Telegramissa"
line: "Jaa LINEssä"
weibo: "Jaa Weibossä"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Poster sur Pinterest"
reddit: "Poster sur Reddit"
twitter: "Tweeter"
# threads: "Post on Threads"
telegram: "Partager sur Telegram"
line: "Partager sur LINE"
weibo: "Partager sur Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "שיתוף בפינטרסט"
reddit: "שליחה לרדיט"
twitter: "ציוץ בטוויטר"
# threads: "Post on Threads"
telegram: "שיתוף בטלגרם"
line: "שיתוף בליין"
# weibo: "Share on Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Megosztás a Pinteresten"
reddit: "Megosztás a Redditen"
twitter: "Megosztás a Twitteren"
# threads: "Post on Threads"
telegram: "Megosztás a Telegramon"
line: "Megosztás a LINE-on"
weibo: "Megosztás a Weibo-on"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin di Pinterest"
reddit: "Kirim ke Reddit"
twitter: "Tweet di Twitter"
# threads: "Post on Threads"
telegram: "Bagikan ke Telegram"
line: "Bagikan ke LINE"
weibo: "Bagikan ke Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pinna su Pinterest"
reddit: "Invia a Reddit"
twitter: "Tweetta su Twitter"
# threads: "Post on Threads"
telegram: "Condividi su Telegram"
line: "Condividi su LINE"
weibo: "Condividi su Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pinterestでピンする"
reddit: "Redditに投稿する"
twitter: "Twitterに投稿する"
# threads: "Post on Threads"
telegram: "Telegramでシェアする"
line: "LINEでシェアする"
weibo: "Weiboでシェアする"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pinterest에 핀하기"
reddit: "Reddit에 게시하기"
twitter: "Twitter에 트윗하기"
# threads: "Post on Threads"
telegram: "Telegram에 공유하기"
line: "LINE에 공유하기"
weibo: "Weibo에 공유하기"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin op Pinterest"
reddit: "Verzend naar Reddit"
twitter: "Tweet op Twitter"
# threads: "Post on Threads"
telegram: "Deel op Telegram"
line: "Deel op LINE"
weibo: "Deel op Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Udostępnij na Pinterest"
reddit: "Udostępnij na Reddit"
twitter: "Udostępnij na Twitter"
# threads: "Post on Threads"
telegram: "Udostępnij na Telegram"
line: "Udostępnij na LINE"
weibo: "Udostępnij na Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin no Pinterest"
reddit: "Postar no Reddit"
twitter: "Tweet no Twitter"
# threads: "Post on Threads"
telegram: "Compartilhar pelo Telegram"
line: "Compartilhar pelo LINE"
weibo: "Compartilhar pelo weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Partilhar no Pinterest"
reddit: "Partilhar no Reddit"
twitter: "Partilhar no Twitter"
# threads: "Post on Threads"
telegram: "Partilhar pelo Telegram"
line: "Partilhar pelo LINE"
weibo: "Partilhar pelo Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pune pe Pinterest"
reddit: "Postează pe Reddit"
twitter: "Scrie pe Twitter"
# threads: "Post on Threads"
telegram: "Trimite pe Telegram"
line: "Trimite pe LINE"
weibo: "Trimite pe Weibo"
+1
View File
@@ -55,6 +55,7 @@ sharing:
pinterest: "Поделиться на Pinterest"
reddit: "Опубликовать на Reddit"
twitter: "Опубликовать на Twitter"
# threads: "Post on Threads"
telegram: "Поделиться на Telegram"
line: "Поделиться на LINE"
weibo: "Поделиться на Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin na Pinterest"
reddit: "Odoslať na Reddit"
twitter: "Tweet na Twitteri"
# threads: "Post on Threads"
telegram: "Zdieľaj na Telegram"
line: "Zdieľaj na LINE"
weibo: "Zdieľaj na Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Fäst på Pinterest"
reddit: "Publicera på Reddit"
twitter: "Twittra på Twitter"
# threads: "Post on Threads"
telegram: "Dela på Telegram"
line: "Dela på LINE"
weibo: "Dela på Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pinterest இல் பின் செய்யவும்"
reddit: "Reddit க்கு சமர்ப்பிக்கவும்"
twitter: "Twitter இல் ட்வீட் செய்யுங்கள்"
# threads: "Post on Threads"
telegram: "Telegram இல் பகிரவும்"
line: "LINE இல் பகிரவும்"
weibo: "Weibo இல் பகிரவும்"
+1
View File
@@ -50,6 +50,7 @@ sharing:
pinterest: "Pinterest'te pinle"
reddit: "Reddit'te gönder"
twitter: "Twitter'da Tweetle"
# threads: "Post on Threads"
telegram: "Telegram'da paylaş"
line: "LINE'da paylaş"
weibo: "Weibo'da paylaş"
+1
View File
@@ -55,6 +55,7 @@ sharing:
pinterest: "Зберегти на Pinterest"
reddit: "Опублікувати на Reddit"
twitter: "Поширити на Twitter"
# threads: "Post on Threads"
telegram: "Поширити на Telegram"
line: "Поширити на LINE"
weibo: "Поширити на Weibo"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "Pin lên Pinterest"
reddit: "Gửi lên Reddit"
twitter: "Tweet lên Twitter"
# threads: "Post on Threads"
telegram: "Chia sẻ lên Telegram"
line: "Chia sẻ lên LINE"
weibo: "Chia sẻ lên Weibo"
+1
View File
@@ -50,6 +50,7 @@ sharing:
pinterest: "钉到 Pinterest"
reddit: "提交到 Reddit"
twitter: "分享到 Twitter"
# threads: "Post on Threads"
telegram: "分享到 Telegram"
line: "分享到 LINE"
weibo: "分享到 微博"
+1
View File
@@ -51,6 +51,7 @@ sharing:
pinterest: "釘到 Pinterest"
reddit: "發送到 Reddit"
twitter: "推到 Twitter"
# threads: "Post on Threads"
telegram: "分享到 Telegram"
line: "分享到 LINE"
weibo: "分享到 微博"