From dc1ea3dfaadaf5f93dfe09544a78d52129e8b635 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sat, 25 Nov 2023 13:14:06 +0800 Subject: [PATCH 1/4] feat: add sharing to telegram --- data/sharing.json | 5 +++++ exampleSite/config/_default/params.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/data/sharing.json b/data/sharing.json index fa7ea432..c33694d0 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -33,5 +33,10 @@ "icon": "twitter", "title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + }, + "telegram": { + "icon": "telegram", + "title": "sharing.telegram", + "url": "https://telegram.me/share/url?text=%s&url=%s" } } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index d828f120..6ddecf7c 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -50,7 +50,7 @@ fingerprintAlgorithm = "sha256" showTaxonomies = false showWordCount = false showComments = false - # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email"] + # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line"] [list] showBreadcrumbs = true From 10c4226fce85d935193c1e2464f76ef2a0a0062d Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sat, 25 Nov 2023 13:14:47 +0800 Subject: [PATCH 2/4] feat: add sharing to line No changes to color is allowed based on their official website https://line.me/en/logo --- assets/icons/line.svg | 2 ++ data/sharing.json | 5 +++++ exampleSite/content/samples/icons/index.de.md | 1 + exampleSite/content/samples/icons/index.es.md | 1 + exampleSite/content/samples/icons/index.ja.md | 1 + exampleSite/content/samples/icons/index.md | 1 + 6 files changed, 11 insertions(+) create mode 100644 assets/icons/line.svg diff --git a/assets/icons/line.svg b/assets/icons/line.svg new file mode 100644 index 00000000..65d089d1 --- /dev/null +++ b/assets/icons/line.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/data/sharing.json b/data/sharing.json index c33694d0..23283513 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -38,5 +38,10 @@ "icon": "telegram", "title": "sharing.telegram", "url": "https://telegram.me/share/url?text=%s&url=%s" + }, + "line": { + "icon": "line", + "title": "sharing.line", + "url": "https://line.me/R/share?text=%s%s" } } diff --git a/exampleSite/content/samples/icons/index.de.md b/exampleSite/content/samples/icons/index.de.md index 7f694a62..1f14ca14 100644 --- a/exampleSite/content/samples/icons/index.de.md +++ b/exampleSite/content/samples/icons/index.de.md @@ -46,6 +46,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin | kickstarter | {{< icon kickstarter >}} | | lastfm | {{< icon lastfm >}} | | lightbulb | {{< icon lightbulb >}} | +| line | {{< icon line >}} | | link | {{< icon link >}} | | linkedin | {{< icon linkedin >}} | | list | {{< icon list >}} | diff --git a/exampleSite/content/samples/icons/index.es.md b/exampleSite/content/samples/icons/index.es.md index 91cd4f06..c17926ac 100644 --- a/exampleSite/content/samples/icons/index.es.md +++ b/exampleSite/content/samples/icons/index.es.md @@ -46,6 +46,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued | kickstarter | {{< icon kickstarter >}} | | lastfm | {{< icon lastfm >}} | | lightbulb | {{< icon lightbulb >}} | +| line | {{< icon line >}} | | link | {{< icon link >}} | | linkedin | {{< icon linkedin >}} | | list | {{< icon list >}} | diff --git a/exampleSite/content/samples/icons/index.ja.md b/exampleSite/content/samples/icons/index.ja.md index 7ee8661d..be939f2b 100644 --- a/exampleSite/content/samples/icons/index.ja.md +++ b/exampleSite/content/samples/icons/index.ja.md @@ -46,6 +46,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ | kickstarter | {{< icon kickstarter >}} | | lastfm | {{< icon lastfm >}} | | lightbulb | {{< icon lightbulb >}} | +| line | {{< icon line >}} | | link | {{< icon link >}} | | linkedin | {{< icon linkedin >}} | | list | {{< icon list >}} | diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 80cc5190..95550b6d 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -46,6 +46,7 @@ The full list of built-in icons and their corresponding names can referenced bel | kickstarter | {{< icon kickstarter >}} | | lastfm | {{< icon lastfm >}} | | lightbulb | {{< icon lightbulb >}} | +| line | {{< icon line >}} | | link | {{< icon link >}} | | linkedin | {{< icon linkedin >}} | | list | {{< icon list >}} | From c9ee62bcde97fb6b6becb446294806770f390404 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sun, 26 Nov 2023 23:17:56 +0800 Subject: [PATCH 3/4] fix: update svg --- assets/icons/line.svg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/assets/icons/line.svg b/assets/icons/line.svg index 65d089d1..b0669293 100644 --- a/assets/icons/line.svg +++ b/assets/icons/line.svg @@ -1,2 +1 @@ - - \ No newline at end of file + \ No newline at end of file From 763257a3acf63fecfb0f121e78f4047ac2bb480a Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sun, 26 Nov 2023 23:27:40 +0800 Subject: [PATCH 4/4] feat: add messages to i18n --- i18n/ar.yaml | 2 ++ i18n/bg.yaml | 2 ++ i18n/bn.yaml | 2 ++ i18n/cs.yaml | 2 ++ i18n/de.yaml | 2 ++ i18n/en.yaml | 2 ++ i18n/es.yaml | 2 ++ i18n/fi.yaml | 2 ++ i18n/fr.yaml | 2 ++ i18n/he.yaml | 2 ++ i18n/hu.yaml | 2 ++ i18n/id.yaml | 2 ++ i18n/it.yaml | 2 ++ i18n/ja.yaml | 2 ++ i18n/nl.yaml | 2 ++ i18n/pl.yaml | 2 ++ i18n/pt-BR.yaml | 2 ++ i18n/pt-PT.yaml | 2 ++ i18n/ro.yaml | 2 ++ i18n/ru.yaml | 2 ++ i18n/sk.yaml | 2 ++ i18n/tr.yaml | 2 ++ i18n/uk.yaml | 2 ++ i18n/zh-CN.yaml | 2 ++ i18n/zh-TW.yaml | 2 ++ 25 files changed, 50 insertions(+) diff --git a/i18n/ar.yaml b/i18n/ar.yaml index 93e3d27c..494a5c17 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "تثبيت على بينتريست" reddit: "نشر على ريديت" twitter: "تغريد على تويتر" + telegram: "شارك على تيليجرام" + line: "شارك على لاين" shortcode: recent_articles: "حديثًا" diff --git a/i18n/bg.yaml b/i18n/bg.yaml index 29052487..be1c6a49 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Пин в Pinterest" reddit: "Публикуване в Reddit" twitter: "Туит в Twitter" + telegram: "Споделете в Telegram" + line: Споделете в LINE"" shortcode: recent_articles: "Последни" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index acd7602e..c6e2eae3 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "পিন্টারেস্টে পিন করুন" reddit: "রেড্ডিটে জমা দিন" twitter: "ট্যুইট করুন" + telegram: "টেলিগ্রামে শেয়ার করুন" + line: "লাইনে শেয়ার করুন" shortcode: recent_articles: "সাম্প্রতিক" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index 2f7b302e..f0628fc6 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin na Pinterest" reddit: "Odeslat na Reddit" twitter: "Tweet na Twitter" + telegram: "Sdílejte na Telegram" + line: "Sdílejte na LINE" shortcode: recent_articles: "Nedávné" diff --git a/i18n/de.yaml b/i18n/de.yaml index 5fe0efc0..91c049e7 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Auf Pinterest pinnen" reddit: "An Reddit senden" twitter: "Auf Twitter teilen" + telegram: "Auf Telegram teilen" + line: "Auf LINE teilen" shortcode: recent_articles: "Neue Beiträge" diff --git a/i18n/en.yaml b/i18n/en.yaml index 6eca1e8b..76450077 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin on Pinterest" reddit: "Submit to Reddit" twitter: "Tweet on Twitter" + telegram: "Share on Telegram" + line: "Share on LINE" shortcode: recent_articles: "Recent" diff --git a/i18n/es.yaml b/i18n/es.yaml index 1c8819d2..941f5860 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pinear en Pinterest" reddit: "Publicar en Reddit" twitter: "Tuitear en Twitter" + telegram: "Compartir en Telegram" + line: "Compartir en LINE" shortcode: recent_articles: "Reciente" diff --git a/i18n/fi.yaml b/i18n/fi.yaml index 94dc8331..5cfaa88e 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Kiinnitä Pinterestiin" reddit: "Lähetä Reddittiin" twitter: "Twiittaa Twitterissä" + telegram: "Jaa Telegramissa" + line: "Jaa LINEssä" shortcode: recent_articles: "Viimeaikaiset" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 7e446f8e..1f7e0915 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Poster sur Pinterest" reddit: "Poster sur Reddit" twitter: "Tweeter" + telegram: "Partager sur Telegram" + line: "Partager sur LINE" shortcode: recent_articles: "Articles récents" diff --git a/i18n/he.yaml b/i18n/he.yaml index d795d2f2..a034c1d7 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "שיתוף בפינטרסט" reddit: "שליחה לרדיט" twitter: "ציוץ בטוויטר" + telegram: "שיתוף בטלגרם" + line: "שיתוף בליין" shortcode: recent_articles: "חדשים" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index bb3dedd7..51ded777 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Megosztás a Pinteresten" reddit: "Megosztás a Redditen" twitter: "Megosztás a Twitteren" + telegram: "Megosztás a Telegramon" + line: "Megosztás a LINE-on" shortcode: recent_articles: "Friss" diff --git a/i18n/id.yaml b/i18n/id.yaml index 1d6dc458..6438a73a 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin di Pinterest" reddit: "Kirim ke Reddit" twitter: "Tweet di Twitter" + telegram: "Bagikan ke Telegram" + line: "Bagikan ke LINE" shortcode: recent_articles: "Terbaru" diff --git a/i18n/it.yaml b/i18n/it.yaml index 48b5b542..4b6a5e1d 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pinna su Pinterest" reddit: "Invia a Reddit" twitter: "Tweetta su Twitter" + telegram: "Condividi su Telegram" + line: "Condividi su LINE" shortcode: recent_articles: "Recenti" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 8c0a14e7..9957b741 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pinterestでピンする" reddit: "Redditに投稿する" twitter: "Twitterに投稿する" + telegram: "Telegramでシェアする" + line: "LINEでシェアする" shortcode: recent_articles: "最近の記事" diff --git a/i18n/nl.yaml b/i18n/nl.yaml index fe64d458..016c66ff 100644 --- a/i18n/nl.yaml +++ b/i18n/nl.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin op Pinterest" reddit: "Verzend naar Reddit" twitter: "Tweet op Twitter" + telegram: "Deel op Telegram" + line: "Deel op LINE" shortcode: recent_articles: "Recent" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 7871ab2b..82c6ad91 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Udostępnij na Pinterest" reddit: "Udostępnij na Reddit" twitter: "Udostępnij na Twitter" + telegram: "Udostępnij na Telegram" + line: "Udostępnij na LINE" shortcode: recent_articles: "Ostatnie" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index c9e14cdb..f5c67fce 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin no Pinterest" reddit: "Postar no Reddit" twitter: "Tweet no Twitter" + telegram: "Compartilhar pelo Telegram" + line: "Compartilhar pelo LINE" shortcode: recent_articles: "Recente" diff --git a/i18n/pt-PT.yaml b/i18n/pt-PT.yaml index a7fe70fc..58b63cd6 100644 --- a/i18n/pt-PT.yaml +++ b/i18n/pt-PT.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Partilhar no Pinterest" reddit: "Partilhar no Reddit" twitter: "Partilhar no Twitter" + telegram: "Partilhar pelo Telegram" + line: "Partilhar pelo LINE" shortcode: recent_articles: "Recente" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index 29d709e6..c928b731 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pune pe Pinterest" reddit: "Postează pe Reddit" twitter: "Scrie pe Twitter" + telegram: "Trimite pe Telegram" + line: "Trimite pe LINE" shortcode: recent_articles: "Cele mai noi" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index c66146ce..4ccba65b 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -55,6 +55,8 @@ sharing: pinterest: "Поделиться на Pinterest" reddit: "Опубликовать на Reddit" twitter: "Опубликовать на Twitter" + telegram: "Поделиться на Telegram" + line: "Поделиться на LINE" shortcode: recent_articles: "Последние" diff --git a/i18n/sk.yaml b/i18n/sk.yaml index 22f450b8..5f8b23a2 100644 --- a/i18n/sk.yaml +++ b/i18n/sk.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "Pin na Pinterest" reddit: "Odoslať na Reddit" twitter: "Tweet na Twitteri" + telegram: "Zdieľaj na Telegram" + line: "Zdieľaj na LINE" shortcode: recent_articles: "Nedávne" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index f8948759..6d13591f 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -50,6 +50,8 @@ sharing: pinterest: "Pinterest'te pinle" reddit: "Reddit'te gönder" twitter: "Twitter'da Tweetle" + telegram: "Telegram'da paylaş" + line: "LINE'da paylaş" shortcode: recent_articles: "Güncel" diff --git a/i18n/uk.yaml b/i18n/uk.yaml index 166b9737..1331f270 100644 --- a/i18n/uk.yaml +++ b/i18n/uk.yaml @@ -55,6 +55,8 @@ sharing: pinterest: "Зберегти на Pinterest" reddit: "Опублікувати на Reddit" twitter: "Поширити на Twitter" + telegram: "Поширити на Telegram" + line: "Поширити на LINE" shortcode: recent_articles: "Недавні дописи" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index 92c6e617..6f0f43ce 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -50,6 +50,8 @@ sharing: pinterest: "钉到 Pinterest" reddit: "提交到 Reddit" twitter: "分享到 Twitter" + telegram: "分享到 Telegram" + line: "分享到 LINE" shortcode: recent_articles: "最近的文章" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index e87fc089..f5ec9986 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -51,6 +51,8 @@ sharing: pinterest: "釘到 Pinterest" reddit: "發送到 Reddit" twitter: "推到 Twitter" + telegram: "分享到 Telegram" + line: "分享到 LINE" shortcode: recent_articles: "最近的文章"