From 9b12b03bdc9eaf7fa98b63f79ec623dcef6703d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Cora=C3=A7=C3=A3o?= Date: Thu, 2 Nov 2023 22:51:09 +0000 Subject: [PATCH] update twitter icon to X --- assets/icons/x-twitter.svg | 1 + config/_default/languages.en.toml | 1 + data/sharing.json | 2 +- exampleSite/config/_default/languages.en.toml | 2 +- exampleSite/config/_default/menus.en.toml | 2 +- exampleSite/content/samples/icons/index.md | 1 + 6 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 assets/icons/x-twitter.svg diff --git a/assets/icons/x-twitter.svg b/assets/icons/x-twitter.svg new file mode 100644 index 00000000..627453e8 --- /dev/null +++ b/assets/icons/x-twitter.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 f138bb18..c50fd6e4 100644 --- a/config/_default/languages.en.toml +++ b/config/_default/languages.en.toml @@ -58,6 +58,7 @@ title = "Blowfish" # { tumblr = "https://username.tumblr.com" }, # { twitch = "https://twitch.tv/username" }, # { twitter = "https://twitter.com/username" }, +# { x-twitter = "https://twitter.com/username" }, # { whatsapp = "https://wa.me/phone-number" }, # { youtube = "https://youtube.com/username" }, # { ko-fi = "https://ko-fi.com/username" }, diff --git a/data/sharing.json b/data/sharing.json index b43eb3fe..a0669ffe 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -25,7 +25,7 @@ "url": "https://reddit.com/submit/?url=%s&resubmit=true&title=%s" }, "twitter": { - "icon": "twitter", + "icon": "x-twitter", "title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" }, diff --git a/exampleSite/config/_default/languages.en.toml b/exampleSite/config/_default/languages.en.toml index e217854e..1baad363 100644 --- a/exampleSite/config/_default/languages.en.toml +++ b/exampleSite/config/_default/languages.en.toml @@ -19,7 +19,7 @@ title = "Blowfish" headline = "A powerful, lightweight theme for Hugo built with Tailwind CSS." bio = "A powerful, lightweight theme for Hugo built with Tailwind CSS." links = [ - { twitter = "https://twitter.com/burufugu" }, + { x-twitter = "https://twitter.com/burufugu" }, { mastodon = "https://masto.ai/@blowfish" }, { github = "https://github.com/nunocoracao/blowfish" }, ] diff --git a/exampleSite/config/_default/menus.en.toml b/exampleSite/config/_default/menus.en.toml index 55849224..b38af0e6 100644 --- a/exampleSite/config/_default/menus.en.toml +++ b/exampleSite/config/_default/menus.en.toml @@ -58,7 +58,7 @@ [[main]] identifier = "twitter" - pre = "twitter" + pre = "x-twitter" url = "https://twitter.com/burufugu" weight = 200 diff --git a/exampleSite/content/samples/icons/index.md b/exampleSite/content/samples/icons/index.md index 6bbbd258..e20880f5 100644 --- a/exampleSite/content/samples/icons/index.md +++ b/exampleSite/content/samples/icons/index.md @@ -106,5 +106,6 @@ The full list of built-in icons and their corresponding names can referenced bel | twitter | {{< icon twitter >}} | | wand-magic-sparkles | {{< icon wand-magic-sparkles >}} | | whatsapp | {{< icon whatsapp >}} | +| x-twitter | {{< icon x-twitter >}} | | xmark | {{< icon xmark >}} | | youtube | {{< icon youtube >}} |