🚸 Add `x-twitter` sharing links

Fixes: #809
pull/805/merge
James Panther 2024-03-09 14:52:22 +11:00
parent 0510d8f655
commit fd49282446
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
30 changed files with 34 additions and 2 deletions

View File

@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed ### Fixed
- `x-twitter` option missing when using sharing links ([#809](https://github.com/jpanther/congo/issues/809))
- Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807)) - Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807))
- Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813)) - Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813))

View File

@ -51,7 +51,7 @@ fingerprintAlgorithm = "sha256"
showTaxonomies = false showTaxonomies = false
showWordCount = false showWordCount = false
showComments = false showComments = false
# sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"] # sharingLinks = ["facebook", "x-twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"]
[list] [list]
showBreadcrumbs = false showBreadcrumbs = false

View File

@ -34,6 +34,11 @@
"title": "sharing.twitter", "title": "sharing.twitter",
"url": "https://twitter.com/intent/tweet/?url=%s&text=%s" "url": "https://twitter.com/intent/tweet/?url=%s&text=%s"
}, },
"x-twitter": {
"icon": "x-twitter",
"title": "sharing.x-twitter",
"url": "https://x.com/intent/tweet/?url=%s&text=%s"
},
"telegram": { "telegram": {
"icon": "telegram", "icon": "telegram",
"title": "sharing.telegram", "title": "sharing.telegram",

View File

@ -162,7 +162,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.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.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.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`, `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`, `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.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.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.| |`list.showTaxonomies`|`false`|Whether or not the taxonomies related to this article are displayed on list pages.|

View File

@ -54,6 +54,7 @@ sharing:
telegram: "شارك على تيليجرام" telegram: "شارك على تيليجرام"
line: "شارك على لاين" line: "شارك على لاين"
# weibo: "Share on Weibo" # weibo: "Share on Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "حديثًا" recent_articles: "حديثًا"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Споделете в Telegram" telegram: "Споделете в Telegram"
line: "Споделете в LINE" line: "Споделете в LINE"
weibo: "Споделете в Weibo" weibo: "Споделете в Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Последни" recent_articles: "Последни"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "টেলিগ্রামে শেয়ার করুন" telegram: "টেলিগ্রামে শেয়ার করুন"
line: "লাইনে শেয়ার করুন" line: "লাইনে শেয়ার করুন"
# weibo: "Share on Weibo" # weibo: "Share on Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "সাম্প্রতিক" recent_articles: "সাম্প্রতিক"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Sdílejte na Telegram" telegram: "Sdílejte na Telegram"
line: "Sdílejte na LINE" line: "Sdílejte na LINE"
weibo: "Sdílejte na Weibo" weibo: "Sdílejte na Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Nedávné" recent_articles: "Nedávné"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Auf Telegram teilen" telegram: "Auf Telegram teilen"
line: "Auf LINE teilen" line: "Auf LINE teilen"
weibo: "Auf Weibo teilen" weibo: "Auf Weibo teilen"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Neue Beiträge" recent_articles: "Neue Beiträge"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Share on Telegram" telegram: "Share on Telegram"
line: "Share on LINE" line: "Share on LINE"
weibo: "Share on Weibo" weibo: "Share on Weibo"
x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Compartir en Telegram" telegram: "Compartir en Telegram"
line: "Compartir en LINE" line: "Compartir en LINE"
weibo: "Compartir en Weibo" weibo: "Compartir en Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Reciente" recent_articles: "Reciente"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Jaa Telegramissa" telegram: "Jaa Telegramissa"
line: "Jaa LINEssä" line: "Jaa LINEssä"
weibo: "Jaa Weibossä" weibo: "Jaa Weibossä"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Viimeaikaiset" recent_articles: "Viimeaikaiset"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Partager sur Telegram" telegram: "Partager sur Telegram"
line: "Partager sur LINE" line: "Partager sur LINE"
weibo: "Partager sur Weibo" weibo: "Partager sur Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Articles récents" recent_articles: "Articles récents"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "שיתוף בטלגרם" telegram: "שיתוף בטלגרם"
line: "שיתוף בליין" line: "שיתוף בליין"
# weibo: "Share on Weibo" # weibo: "Share on Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "חדשים" recent_articles: "חדשים"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Megosztás a Telegramon" telegram: "Megosztás a Telegramon"
line: "Megosztás a LINE-on" line: "Megosztás a LINE-on"
weibo: "Megosztás a Weibo-on" weibo: "Megosztás a Weibo-on"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Friss" recent_articles: "Friss"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Bagikan ke Telegram" telegram: "Bagikan ke Telegram"
line: "Bagikan ke LINE" line: "Bagikan ke LINE"
weibo: "Bagikan ke Weibo" weibo: "Bagikan ke Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Terbaru" recent_articles: "Terbaru"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Condividi su Telegram" telegram: "Condividi su Telegram"
line: "Condividi su LINE" line: "Condividi su LINE"
weibo: "Condividi su Weibo" weibo: "Condividi su Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Recenti" recent_articles: "Recenti"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Telegramでシェアする" telegram: "Telegramでシェアする"
line: "LINEでシェアする" line: "LINEでシェアする"
weibo: "Weiboでシェアする" weibo: "Weiboでシェアする"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "最近の記事" recent_articles: "最近の記事"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Telegram에 공유하기" telegram: "Telegram에 공유하기"
line: "LINE에 공유하기" line: "LINE에 공유하기"
weibo: "Weibo에 공유하기" weibo: "Weibo에 공유하기"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "최신 글" recent_articles: "최신 글"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Deel op Telegram" telegram: "Deel op Telegram"
line: "Deel op LINE" line: "Deel op LINE"
weibo: "Deel op Weibo" weibo: "Deel op Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Recent" recent_articles: "Recent"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Udostępnij na Telegram" telegram: "Udostępnij na Telegram"
line: "Udostępnij na LINE" line: "Udostępnij na LINE"
weibo: "Udostępnij na Weibo" weibo: "Udostępnij na Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Ostatnie" recent_articles: "Ostatnie"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Compartilhar pelo Telegram" telegram: "Compartilhar pelo Telegram"
line: "Compartilhar pelo LINE" line: "Compartilhar pelo LINE"
weibo: "Compartilhar pelo weibo" weibo: "Compartilhar pelo weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Recente" recent_articles: "Recente"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Partilhar pelo Telegram" telegram: "Partilhar pelo Telegram"
line: "Partilhar pelo LINE" line: "Partilhar pelo LINE"
weibo: "Partilhar pelo Weibo" weibo: "Partilhar pelo Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Recente" recent_articles: "Recente"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Trimite pe Telegram" telegram: "Trimite pe Telegram"
line: "Trimite pe LINE" line: "Trimite pe LINE"
weibo: "Trimite pe Weibo" weibo: "Trimite pe Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Cele mai noi" recent_articles: "Cele mai noi"

View File

@ -58,6 +58,7 @@ sharing:
telegram: "Поделиться на Telegram" telegram: "Поделиться на Telegram"
line: "Поделиться на LINE" line: "Поделиться на LINE"
weibo: "Поделиться на Weibo" weibo: "Поделиться на Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Последние" recent_articles: "Последние"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "Zdieľaj na Telegram" telegram: "Zdieľaj na Telegram"
line: "Zdieľaj na LINE" line: "Zdieľaj na LINE"
weibo: "Zdieľaj na Weibo" weibo: "Zdieľaj na Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Nedávne" recent_articles: "Nedávne"

View File

@ -53,6 +53,7 @@ sharing:
telegram: "Telegram'da paylaş" telegram: "Telegram'da paylaş"
line: "LINE'da paylaş" line: "LINE'da paylaş"
weibo: "Weibo'da paylaş" weibo: "Weibo'da paylaş"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Güncel" recent_articles: "Güncel"

View File

@ -58,6 +58,7 @@ sharing:
telegram: "Поширити на Telegram" telegram: "Поширити на Telegram"
line: "Поширити на LINE" line: "Поширити на LINE"
weibo: "Поширити на Weibo" weibo: "Поширити на Weibo"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "Недавні дописи" recent_articles: "Недавні дописи"

View File

@ -53,6 +53,7 @@ sharing:
telegram: "分享到 Telegram" telegram: "分享到 Telegram"
line: "分享到 LINE" line: "分享到 LINE"
weibo: "分享到 微博" weibo: "分享到 微博"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "最近的文章" recent_articles: "最近的文章"

View File

@ -54,6 +54,7 @@ sharing:
telegram: "分享到 Telegram" telegram: "分享到 Telegram"
line: "分享到 LINE" line: "分享到 LINE"
weibo: "分享到 微博" weibo: "分享到 微博"
# x-twitter: "Post on X"
shortcode: shortcode:
recent_articles: "最近的文章" recent_articles: "最近的文章"