From 9ffba743266f98c0221662d1b35a17616eda878f Mon Sep 17 00:00:00 2001 From: Artis Lismanis Date: Sat, 17 Feb 2024 11:43:22 +0000 Subject: [PATCH 1/4] Add x.com SVG icon for social widget --- layouts/partials/svg/x.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 layouts/partials/svg/x.svg diff --git a/layouts/partials/svg/x.svg b/layouts/partials/svg/x.svg new file mode 100644 index 00000000..24f877e6 --- /dev/null +++ b/layouts/partials/svg/x.svg @@ -0,0 +1 @@ + \ No newline at end of file From 131376b124f1c8c4a386b8a9ae79c7e37c8b400d Mon Sep 17 00:00:00 2001 From: Artis Lismanis Date: Sat, 17 Feb 2024 11:44:00 +0000 Subject: [PATCH 2/4] Remove Twitter SVG icon for social widget --- layouts/partials/svg/twitter.svg | 1 - 1 file changed, 1 deletion(-) delete mode 100644 layouts/partials/svg/twitter.svg diff --git a/layouts/partials/svg/twitter.svg b/layouts/partials/svg/twitter.svg deleted file mode 100644 index a78e0735..00000000 --- a/layouts/partials/svg/twitter.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 52960d0b9bdd7fc42d368686334b8e50aca31e7d Mon Sep 17 00:00:00 2001 From: Artis Lismanis Date: Sat, 17 Feb 2024 11:46:25 +0000 Subject: [PATCH 3/4] Change social widget from Twitter to X --- layouts/partials/widgets/social.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/widgets/social.html b/layouts/partials/widgets/social.html index 8ba07161..5685599d 100644 --- a/layouts/partials/widgets/social.html +++ b/layouts/partials/widgets/social.html @@ -10,11 +10,11 @@

{{ T "social_title" }}

{{- end }} - {{- with .Site.Params.widgets.social.twitter }} + {{- with or .Site.Params.widgets.social.x .Site.Params.widgets.social.twitter }} {{- end }} From b236000ca924db6abbfab1757dbdff537d313b1a Mon Sep 17 00:00:00 2001 From: Artis Lismanis Date: Sat, 17 Feb 2024 12:20:18 +0000 Subject: [PATCH 4/4] Update readme with x.com social widget configuration example --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 70fcd739..d925e4da 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,8 @@ googleAnalytics = "" # DEPRECATED! Use .Services.googleAnalytics.ID cached = false # activate cache if true # Enable parts of social widget facebook = "username" - twitter = "username" + x = "username" + # twitter = "username" supported for backwards compatibility, precedence given to x = "username" if both used instagram = "username" linkedin = "username" telegram = "username"