From dc1ea3dfaadaf5f93dfe09544a78d52129e8b635 Mon Sep 17 00:00:00 2001 From: Wen Junhua Date: Sat, 25 Nov 2023 13:14:06 +0800 Subject: [PATCH 1/2] 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/2] 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 >}} |