From f2da0e6ae7859e16145f6fb57972be25a72f4ac3 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 11:30:20 +0900 Subject: [PATCH 1/6] feat: add share to weibo --- assets/icons/weibo.svg | 1 + config/_default/params.toml | 2 +- data/sharing.json | 5 +++++ exampleSite/config/_default/params.toml | 2 +- i18n/bg.yaml | 3 ++- i18n/cs.yaml | 1 + i18n/de.yaml | 1 + i18n/en.yaml | 1 + i18n/es.yaml | 1 + i18n/fr.yaml | 1 + i18n/zh-CN.yaml | 1 + i18n/zh-TW.yaml | 1 + 12 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 assets/icons/weibo.svg diff --git a/assets/icons/weibo.svg b/assets/icons/weibo.svg new file mode 100644 index 00000000..aa295622 --- /dev/null +++ b/assets/icons/weibo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/config/_default/params.toml b/config/_default/params.toml index d1aeedca..fe0bc176 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -51,7 +51,7 @@ fingerprintAlgorithm = "sha256" showTaxonomies = false showWordCount = false showComments = false - # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line"] + # sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"] [list] showBreadcrumbs = false diff --git a/data/sharing.json b/data/sharing.json index 23283513..c7695e87 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -43,5 +43,10 @@ "icon": "line", "title": "sharing.line", "url": "https://line.me/R/share?text=%s%s" + }, + "weibo": { + "icon": "weibo", + "title":"sharing.weibo", + "url": "https://service.weibo.com/share/share.php?url=%s&appkey=&title=%s&pic=&ralateUid=&lang" } } diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 3038930a..47975e74 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"] + sharingLinks = ["facebook", "twitter", "mastodon", "pinterest", "reddit", "linkedin", "email", "telegram", "line", "weibo"] [list] showBreadcrumbs = true diff --git a/i18n/bg.yaml b/i18n/bg.yaml index be1c6a49..cc7db846 100644 --- a/i18n/bg.yaml +++ b/i18n/bg.yaml @@ -52,7 +52,8 @@ sharing: reddit: "Публикуване в Reddit" twitter: "Туит в Twitter" telegram: "Споделете в Telegram" - line: Споделете в LINE"" + line: "Споделете в LINE" + weibo: "Споделете в Weibo" shortcode: recent_articles: "Последни" diff --git a/i18n/cs.yaml b/i18n/cs.yaml index f0628fc6..017e74a9 100644 --- a/i18n/cs.yaml +++ b/i18n/cs.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet na Twitter" telegram: "Sdílejte na Telegram" line: "Sdílejte na LINE" + line: "Sdílejte na Weibo" shortcode: recent_articles: "Nedávné" diff --git a/i18n/de.yaml b/i18n/de.yaml index 91c049e7..c76516ca 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Auf Twitter teilen" telegram: "Auf Telegram teilen" line: "Auf LINE teilen" + weibo: "Auf Weibo teilen" shortcode: recent_articles: "Neue Beiträge" diff --git a/i18n/en.yaml b/i18n/en.yaml index 76450077..2d87eb71 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet on Twitter" telegram: "Share on Telegram" line: "Share on LINE" + weibo: "Share on Weibo" shortcode: recent_articles: "Recent" diff --git a/i18n/es.yaml b/i18n/es.yaml index 941f5860..0e078604 100644 --- a/i18n/es.yaml +++ b/i18n/es.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tuitear en Twitter" telegram: "Compartir en Telegram" line: "Compartir en LINE" + weibo: "Compartir en Weibo" shortcode: recent_articles: "Reciente" diff --git a/i18n/fr.yaml b/i18n/fr.yaml index 1f7e0915..80471567 100644 --- a/i18n/fr.yaml +++ b/i18n/fr.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweeter" telegram: "Partager sur Telegram" line: "Partager sur LINE" + weibo: "Partager sur Weibo" shortcode: recent_articles: "Articles récents" diff --git a/i18n/zh-CN.yaml b/i18n/zh-CN.yaml index 6f0f43ce..3f974207 100644 --- a/i18n/zh-CN.yaml +++ b/i18n/zh-CN.yaml @@ -52,6 +52,7 @@ sharing: twitter: "分享到 Twitter" telegram: "分享到 Telegram" line: "分享到 LINE" + weibo: "分享到 微博" shortcode: recent_articles: "最近的文章" diff --git a/i18n/zh-TW.yaml b/i18n/zh-TW.yaml index f5ec9986..a60501b3 100644 --- a/i18n/zh-TW.yaml +++ b/i18n/zh-TW.yaml @@ -53,6 +53,7 @@ sharing: twitter: "推到 Twitter" telegram: "分享到 Telegram" line: "分享到 LINE" + weibo: "分享到 微博" shortcode: recent_articles: "最近的文章" From 71cc97b4bbc547a7c985209fabec2e08ae96fae4 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 12:47:05 +0900 Subject: [PATCH 2/6] feat: add profile for mendeley --- assets/icons/mendeley.svg | 1 + config/_default/languages.en.toml | 1 + exampleSite/config/_default/languages.en.toml | 1 + 3 files changed, 3 insertions(+) create mode 100644 assets/icons/mendeley.svg diff --git a/assets/icons/mendeley.svg b/assets/icons/mendeley.svg new file mode 100644 index 00000000..dbd2ed86 --- /dev/null +++ b/assets/icons/mendeley.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/config/_default/languages.en.toml b/config/_default/languages.en.toml index 265387d2..f3b8ff7b 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -59,4 +59,5 @@ title = "Congo" # { whatsapp = "https://wa.me/phone-number" }, # { x-twitter = "https://twitter.com/username" }, # { youtube = "https://youtube.com/username" }, + # { mendeley = "https://www.mendeley.com/" }, # ] diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index b7bf147c..0c15ca94 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -22,4 +22,5 @@ copyright = "© 2023 Congo contributors" { facebook = "https://facebook.com/" }, { linkedin = "https://linkedin.com/" }, { youtube = "https://youtube.com/" }, + { mendeley = "https://www.mendeley.com/" }, ] \ No newline at end of file From a12d3f8e5bcf8126c0a47cc0b57d2320f77a23ed Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 12:52:13 +0900 Subject: [PATCH 3/6] chore: add i18n for weibo --- i18n/ar.yaml | 1 + i18n/bn.yaml | 1 + i18n/he.yaml | 1 + i18n/hu.yaml | 1 + i18n/id.yaml | 1 + i18n/it.yaml | 1 + i18n/ja.yaml | 1 + i18n/ko.yaml | 1 + i18n/nl.yaml | 1 + i18n/pl.yaml | 1 + i18n/pt-BR.yaml | 1 + i18n/pt-PT.yaml | 1 + i18n/ro.yaml | 1 + i18n/ru.yaml | 1 + i18n/sk.yaml | 1 + i18n/tr.yaml | 1 + i18n/uk.yaml | 1 + 17 files changed, 17 insertions(+) diff --git a/i18n/ar.yaml b/i18n/ar.yaml index 494a5c17..802b8027 100644 --- a/i18n/ar.yaml +++ b/i18n/ar.yaml @@ -53,6 +53,7 @@ sharing: twitter: "تغريد على تويتر" telegram: "شارك على تيليجرام" line: "شارك على لاين" + # weibo: "Share on Weibo" shortcode: recent_articles: "حديثًا" diff --git a/i18n/bn.yaml b/i18n/bn.yaml index c6e2eae3..1501d7fb 100644 --- a/i18n/bn.yaml +++ b/i18n/bn.yaml @@ -53,6 +53,7 @@ sharing: twitter: "ট্যুইট করুন" telegram: "টেলিগ্রামে শেয়ার করুন" line: "লাইনে শেয়ার করুন" + # weibo: "Share on Weibo" shortcode: recent_articles: "সাম্প্রতিক" diff --git a/i18n/he.yaml b/i18n/he.yaml index a034c1d7..31177246 100644 --- a/i18n/he.yaml +++ b/i18n/he.yaml @@ -53,6 +53,7 @@ sharing: twitter: "ציוץ בטוויטר" telegram: "שיתוף בטלגרם" line: "שיתוף בליין" + # weibo: "Share on Weibo" shortcode: recent_articles: "חדשים" diff --git a/i18n/hu.yaml b/i18n/hu.yaml index 51ded777..7c3be8fe 100644 --- a/i18n/hu.yaml +++ b/i18n/hu.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Megosztás a Twitteren" telegram: "Megosztás a Telegramon" line: "Megosztás a LINE-on" + weibo: "Megosztás a Weibo-on" shortcode: recent_articles: "Friss" diff --git a/i18n/id.yaml b/i18n/id.yaml index 6438a73a..c3f7be07 100644 --- a/i18n/id.yaml +++ b/i18n/id.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet di Twitter" telegram: "Bagikan ke Telegram" line: "Bagikan ke LINE" + weibo: "Bagikan ke Weibo" shortcode: recent_articles: "Terbaru" diff --git a/i18n/it.yaml b/i18n/it.yaml index 4b6a5e1d..2c3f4749 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweetta su Twitter" telegram: "Condividi su Telegram" line: "Condividi su LINE" + weibo: "Condividi su Weibo" shortcode: recent_articles: "Recenti" diff --git a/i18n/ja.yaml b/i18n/ja.yaml index 9957b741..05577473 100644 --- a/i18n/ja.yaml +++ b/i18n/ja.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Twitterに投稿する" telegram: "Telegramでシェアする" line: "LINEでシェアする" + weibo: "Weiboでシェアする" shortcode: recent_articles: "最近の記事" diff --git a/i18n/ko.yaml b/i18n/ko.yaml index cf625b2d..4f9bc20a 100644 --- a/i18n/ko.yaml +++ b/i18n/ko.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Twitter에 트윗하기" telegram: "Telegram에 공유하기" line: "LINE에 공유하기" + weibo: "Weibo에 공유하기" shortcode: recent_articles: "최신 글" diff --git a/i18n/nl.yaml b/i18n/nl.yaml index 016c66ff..a248b1b1 100644 --- a/i18n/nl.yaml +++ b/i18n/nl.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet op Twitter" telegram: "Deel op Telegram" line: "Deel op LINE" + weibo: "Deel op Weibo" shortcode: recent_articles: "Recent" diff --git a/i18n/pl.yaml b/i18n/pl.yaml index 82c6ad91..1f947b56 100644 --- a/i18n/pl.yaml +++ b/i18n/pl.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Udostępnij na Twitter" telegram: "Udostępnij na Telegram" line: "Udostępnij na LINE" + weibo: "Udostępnij na Weibo" shortcode: recent_articles: "Ostatnie" diff --git a/i18n/pt-BR.yaml b/i18n/pt-BR.yaml index f5c67fce..b02b789a 100644 --- a/i18n/pt-BR.yaml +++ b/i18n/pt-BR.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet no Twitter" telegram: "Compartilhar pelo Telegram" line: "Compartilhar pelo LINE" + weibo: "Compartilhar pelo weibo" shortcode: recent_articles: "Recente" diff --git a/i18n/pt-PT.yaml b/i18n/pt-PT.yaml index 58b63cd6..03f01c14 100644 --- a/i18n/pt-PT.yaml +++ b/i18n/pt-PT.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Partilhar no Twitter" telegram: "Partilhar pelo Telegram" line: "Partilhar pelo LINE" + weibo: "Partilhar pelo Weibo" shortcode: recent_articles: "Recente" diff --git a/i18n/ro.yaml b/i18n/ro.yaml index c928b731..11ee46cf 100644 --- a/i18n/ro.yaml +++ b/i18n/ro.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Scrie pe Twitter" telegram: "Trimite pe Telegram" line: "Trimite pe LINE" + weibo: "Trimite pe Weibo" shortcode: recent_articles: "Cele mai noi" diff --git a/i18n/ru.yaml b/i18n/ru.yaml index 4ccba65b..e8d5b7e3 100644 --- a/i18n/ru.yaml +++ b/i18n/ru.yaml @@ -57,6 +57,7 @@ sharing: twitter: "Опубликовать на Twitter" telegram: "Поделиться на Telegram" line: "Поделиться на LINE" + weibo: "Поделиться на Weibo" shortcode: recent_articles: "Последние" diff --git a/i18n/sk.yaml b/i18n/sk.yaml index 5f8b23a2..dba1255b 100644 --- a/i18n/sk.yaml +++ b/i18n/sk.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Tweet na Twitteri" telegram: "Zdieľaj na Telegram" line: "Zdieľaj na LINE" + weibo: "Zdieľaj na Weibo" shortcode: recent_articles: "Nedávne" diff --git a/i18n/tr.yaml b/i18n/tr.yaml index 6d13591f..6e411eba 100644 --- a/i18n/tr.yaml +++ b/i18n/tr.yaml @@ -52,6 +52,7 @@ sharing: twitter: "Twitter'da Tweetle" telegram: "Telegram'da paylaş" line: "LINE'da paylaş" + weibo: "Weibo'da paylaş" shortcode: recent_articles: "Güncel" diff --git a/i18n/uk.yaml b/i18n/uk.yaml index 1331f270..bba84178 100644 --- a/i18n/uk.yaml +++ b/i18n/uk.yaml @@ -57,6 +57,7 @@ sharing: twitter: "Поширити на Twitter" telegram: "Поширити на Telegram" line: "Поширити на LINE" + weibo: "Поширити на Weibo" shortcode: recent_articles: "Недавні дописи" From 0f7a3bec71a7508325e873c40d95e4d06d0e7c54 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 12:54:09 +0900 Subject: [PATCH 4/6] chore: add i18n for finnish --- i18n/fi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/i18n/fi.yaml b/i18n/fi.yaml index 5cfaa88e..fb5fc6f6 100644 --- a/i18n/fi.yaml +++ b/i18n/fi.yaml @@ -53,6 +53,7 @@ sharing: twitter: "Twiittaa Twitterissä" telegram: "Jaa Telegramissa" line: "Jaa LINEssä" + weibo: "Jaa Weibossä" shortcode: recent_articles: "Viimeaikaiset" From 8437ea3eb210fed5bc50e55d811ba892757a0f28 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 12:55:37 +0900 Subject: [PATCH 5/6] feat: update icons page --- exampleSite/content/samples/icons/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 95550b6d..bb36846d 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -52,6 +52,7 @@ The full list of built-in icons and their corresponding names can referenced bel | list | {{< icon list >}} | | mastodon | {{< icon mastodon >}} | | medium | {{< icon medium >}} | +| mendeley | {{< icon mendeley>}} | | microsoft | {{< icon microsoft >}} | | mobile | {{< icon mobile >}} | | moon | {{< icon moon >}} | @@ -79,6 +80,7 @@ The full list of built-in icons and their corresponding names can referenced bel | tumblr | {{< icon tumblr >}} | | twitch | {{< icon twitch >}} | | twitter | {{< icon twitter >}} | +| weibo | {{< icon weibo >}} | | whatsapp | {{< icon whatsapp >}} | | x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} | From fa8cc5782a248c93b4b45981ecd9971b716d8fe4 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Thu, 21 Dec 2023 13:10:32 +0900 Subject: [PATCH 6/6] feat: add icon to table for other languages --- exampleSite/content/samples/icons/index.de.md | 2 ++ exampleSite/content/samples/icons/index.es.md | 2 ++ exampleSite/content/samples/icons/index.ja.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/exampleSite/content/samples/icons/index.de.md b/exampleSite/content/samples/icons/index.de.md index 1f14ca14..95a85a1f 100644 --- a/exampleSite/content/samples/icons/index.de.md +++ b/exampleSite/content/samples/icons/index.de.md @@ -52,6 +52,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin | list | {{< icon list >}} | | mastodon | {{< icon mastodon >}} | | medium | {{< icon medium >}} | +| mendeley | {{< icon mendeley>}} | | microsoft | {{< icon microsoft >}} | | mobile | {{< icon mobile >}} | | moon | {{< icon moon >}} | @@ -79,6 +80,7 @@ Die vollständige Liste der integrierten Icons und ihre entsprechenden Namen fin | tumblr | {{< icon tumblr >}} | | twitch | {{< icon twitch >}} | | twitter | {{< icon twitter >}} | +| weibo | {{< icon weibo >}} | | whatsapp | {{< icon whatsapp >}} | | x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} | diff --git a/exampleSite/content/samples/icons/index.es.md b/exampleSite/content/samples/icons/index.es.md index c17926ac..231be007 100644 --- a/exampleSite/content/samples/icons/index.es.md +++ b/exampleSite/content/samples/icons/index.es.md @@ -52,6 +52,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued | list | {{< icon list >}} | | mastodon | {{< icon mastodon >}} | | medium | {{< icon medium >}} | +| mendeley | {{< icon mendeley>}} | | microsoft | {{< icon microsoft >}} | | mobile | {{< icon mobile >}} | | moon | {{< icon moon >}} | @@ -79,6 +80,7 @@ La lista completa de íconos incorporados y sus nombres correspondientes se pued | tumblr | {{< icon tumblr >}} | | twitch | {{< icon twitch >}} | | twitter | {{< icon twitter >}} | +| weibo | {{< icon weibo >}} | | whatsapp | {{< icon whatsapp >}} | | x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} | diff --git a/exampleSite/content/samples/icons/index.ja.md b/exampleSite/content/samples/icons/index.ja.md index be939f2b..7fce9e3e 100644 --- a/exampleSite/content/samples/icons/index.ja.md +++ b/exampleSite/content/samples/icons/index.ja.md @@ -52,6 +52,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ | list | {{< icon list >}} | | mastodon | {{< icon mastodon >}} | | medium | {{< icon medium >}} | +| mendeley | {{< icon mendeley>}} | | microsoft | {{< icon microsoft >}} | | mobile | {{< icon mobile >}} | | moon | {{< icon moon >}} | @@ -79,6 +80,7 @@ Congo は[FontAwesome 6](https://fontawesome.com/icons)のアイコンをサポ | tumblr | {{< icon tumblr >}} | | twitch | {{< icon twitch >}} | | twitter | {{< icon twitter >}} | +| weibo | {{< icon weibo >}} | | whatsapp | {{< icon whatsapp >}} | | x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} |