diff --git a/CHANGELOG.md b/CHANGELOG.md index 2092154..2e94788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 055af10..09f28eb 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -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" }, diff --git a/config/_default/params.toml b/config/_default/params.toml index a7338dc..1963780 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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] diff --git a/data/sharing.json b/data/sharing.json index 96afe8b..f3cb1d2 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -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", diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 0489c5d..f13da48 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -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 diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index 537f86f..1fb2e82 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -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.| diff --git a/i18n/ar.yaml b/i18n/ar.yaml index 3feafc7..9ca9f24 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "تثبيت على بينتريست" reddit: "نشر على ريديت" twitter: "تغريد على تويتر" + # threads: "Post on Threads" telegram: "شارك على تيليجرام" line: "شارك على لاين" # weibo: "Share on Weibo" diff --git a/i18n/bg.yaml b/i18n/bg.yaml index fd918e0..e812c38 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -52,6 +52,7 @@ sharing: reddit: "Публикуване в Reddit" twitter: "Туит в Twitter" telegram: "Споделете в Telegram" + # threads: "Post on Threads" line: "Споделете в LINE" weibo: "Споделете в Weibo" # x-twitter: "Post on X" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index f083e72..7ddf63f 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "পিন্টারেস্টে পিন করুন" reddit: "রেড্ডিটে জমা দিন" twitter: "ট্যুইট করুন" + # threads: "Post on Threads" telegram: "টেলিগ্রামে শেয়ার করুন" line: "লাইনে শেয়ার করুন" # weibo: "Share on Weibo" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index 43ba72e..ce7ec73 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -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" diff --git a/i18n/de.yaml b/i18n/de.yaml index ae27e95..d2a0066 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -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" diff --git a/i18n/en.yaml b/i18n/en.yaml index 630ed51..428377c 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -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" diff --git a/i18n/es.yaml b/i18n/es.yaml index 7665f5f..ce0bc16 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -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" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index de5a36c..64b7251 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -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ä" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 96b7eec..22f4ea0 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -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" diff --git a/i18n/he.yaml b/i18n/he.yaml index 116b718..453d3f1 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "שיתוף בפינטרסט" reddit: "שליחה לרדיט" twitter: "ציוץ בטוויטר" + # threads: "Post on Threads" telegram: "שיתוף בטלגרם" line: "שיתוף בליין" # weibo: "Share on Weibo" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index fd88407..2f1a40e 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -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" diff --git a/i18n/id.yaml b/i18n/id.yaml index 574a745..07b21f5 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -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" diff --git a/i18n/it.yaml b/i18n/it.yaml index 626ae01..ed8a9f1 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -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" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 2e91d8b..836cfba 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "Pinterestでピンする" reddit: "Redditに投稿する" twitter: "Twitterに投稿する" + # threads: "Post on Threads" telegram: "Telegramでシェアする" line: "LINEでシェアする" weibo: "Weiboでシェアする" diff --git a/i18n/ko.yaml b/i18n/ko.yaml index 81d283e..a14dc4e 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "Pinterest에 핀하기" reddit: "Reddit에 게시하기" twitter: "Twitter에 트윗하기" + # threads: "Post on Threads" telegram: "Telegram에 공유하기" line: "LINE에 공유하기" weibo: "Weibo에 공유하기" diff --git a/i18n/nl.yaml b/i18n/nl.yaml index 057600c..0a40e92 100644 --- a/i18n/nl.yaml +++ b/i18n/nl.yaml @@ -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" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index b959a68..d1e8bcb 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -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" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index 5ba26dd..ea30415 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -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" diff --git a/i18n/pt-PT.yaml b/i18n/pt-PT.yaml index c3e2aaa..c63a251 100644 --- a/i18n/pt-PT.yaml +++ b/i18n/pt-PT.yaml @@ -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" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 1a68180..d1bc12d 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -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" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 2516b0e..b40527a 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -55,6 +55,7 @@ sharing: pinterest: "Поделиться на Pinterest" reddit: "Опубликовать на Reddit" twitter: "Опубликовать на Twitter" + # threads: "Post on Threads" telegram: "Поделиться на Telegram" line: "Поделиться на LINE" weibo: "Поделиться на Weibo" diff --git a/i18n/sk.yaml b/i18n/sk.yaml index 652241a..fc5a810 100644 --- a/i18n/sk.yaml +++ b/i18n/sk.yaml @@ -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" diff --git a/i18n/sv.yaml b/i18n/sv.yaml index 5fcc9e0..692c8f3 100644 --- a/i18n/sv.yaml +++ b/i18n/sv.yaml @@ -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" diff --git a/i18n/ta.yaml b/i18n/ta.yaml index f257e13..3f4c248 100644 --- a/i18n/ta.yaml +++ b/i18n/ta.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "Pinterest இல் பின் செய்யவும்" reddit: "Reddit க்கு சமர்ப்பிக்கவும்" twitter: "Twitter இல் ட்வீட் செய்யுங்கள்" + # threads: "Post on Threads" telegram: "Telegram இல் பகிரவும்" line: "LINE இல் பகிரவும்" weibo: "Weibo இல் பகிரவும்" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index 11bc478..a974333 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -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ş" diff --git a/i18n/uk.yaml b/i18n/uk.yaml index f9036d3..e1ec2e5 100644 --- a/i18n/uk.yaml +++ b/i18n/uk.yaml @@ -55,6 +55,7 @@ sharing: pinterest: "Зберегти на Pinterest" reddit: "Опублікувати на Reddit" twitter: "Поширити на Twitter" + # threads: "Post on Threads" telegram: "Поширити на Telegram" line: "Поширити на LINE" weibo: "Поширити на Weibo" diff --git a/i18n/vi.yaml b/i18n/vi.yaml index c859c20..5b6376e 100644 --- a/i18n/vi.yaml +++ b/i18n/vi.yaml @@ -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" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index e7072c6..79a1749 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -50,6 +50,7 @@ sharing: pinterest: "钉到 Pinterest" reddit: "提交到 Reddit" twitter: "分享到 Twitter" + # threads: "Post on Threads" telegram: "分享到 Telegram" line: "分享到 LINE" weibo: "分享到 微博" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index 49f326a..b5e95ac 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -51,6 +51,7 @@ sharing: pinterest: "釘到 Pinterest" reddit: "發送到 Reddit" twitter: "推到 Twitter" + # threads: "Post on Threads" telegram: "分享到 Telegram" line: "分享到 LINE" weibo: "分享到 微博"