From 50cafe4b1c79114e601cc2b87c0cfea1ee518cbc Mon Sep 17 00:00:00 2001 From: Sebastian Zanoni Date: Sat, 4 Nov 2023 06:02:55 +0100 Subject: [PATCH] Add X icon in Share and Social buttons (replaces twitter share icon) (#1273) * Add svg for X * Add X share button * Remove twitter share button * Add backwards compatibility for twitter share button * simplify condition * alphabetize x svg --------- Co-authored-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com> --- layouts/partials/share_icons.html | 8 ++++---- layouts/partials/svg.html | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/partials/share_icons.html b/layouts/partials/share_icons.html index 4281c940..4ae18791 100644 --- a/layouts/partials/share_icons.html +++ b/layouts/partials/share_icons.html @@ -14,12 +14,12 @@ {{- with $ShareButtons }}{{ $custom = true }}{{ end }}
- {{- if (cond ($custom) (in $ShareButtons "twitter") (true)) }} - + {{- if (or (cond ($custom) (in $ShareButtons "x") (true)) (cond ($custom) (in $ShareButtons "twitter") (true))) }} + + d="M512 62.554 L 512 449.446 C 512 483.97 483.97 512 449.446 512 L 62.554 512 C 28.03 512 0 483.97 0 449.446 L 0 62.554 C 0 28.03 28.029 0 62.554 0 L 449.446 0 C 483.971 0 512 28.03 512 62.554 Z M 269.951 190.75 L 182.567 75.216 L 56 75.216 L 207.216 272.95 L 63.9 436.783 L 125.266 436.783 L 235.9 310.383 L 332.567 436.783 L 456 436.783 L 298.367 228.367 L 432.367 75.216 L 371.033 75.216 Z M 127.633 110 L 164.101 110 L 383.481 400.065 L 349.5 400.065 Z"/> {{- end }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 390fc569..cc80839c 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -705,6 +705,12 @@ +{{- else if (eq $icon_name "x") -}} + + + + {{- else if (eq $icon_name "xda") -}}