From 9c78103ec1d6cd5055d301a6f5bbe2209eca118a Mon Sep 17 00:00:00 2001 From: Alwin Date: Mon, 1 Jan 2024 23:23:20 +0800 Subject: [PATCH] upload x logo,it X formerly Twitter --- README.md | 1 + layouts/partials/svg/x-twitter.svg | 1 + layouts/partials/widgets/social.html | 8 ++++++++ 3 files changed, 10 insertions(+) create mode 100644 layouts/partials/svg/x-twitter.svg diff --git a/README.md b/README.md index 70fcd739..fa144b0c 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ googleAnalytics = "" # DEPRECATED! Use .Services.googleAnalytics.ID # Enable parts of social widget facebook = "username" twitter = "username" + x = "username" #X (Formerly Twitter) instagram = "username" linkedin = "username" telegram = "username" diff --git a/layouts/partials/svg/x-twitter.svg b/layouts/partials/svg/x-twitter.svg new file mode 100644 index 00000000..17d445d9 --- /dev/null +++ b/layouts/partials/svg/x-twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/layouts/partials/widgets/social.html b/layouts/partials/widgets/social.html index 8ba07161..fab30e2e 100644 --- a/layouts/partials/widgets/social.html +++ b/layouts/partials/widgets/social.html @@ -18,6 +18,14 @@

{{ T "social_title" }}

{{- end }} + {{- with .Site.Params.widgets.social.x }} +
+ + {{ partial "svg/x-twitter.svg" (dict "class" "widget-social__link-icon") }} + X + +
+ {{- end }} {{- with .Site.Params.widgets.social.instagram }}