Skip to content

Commit cac8ba0

Browse files
authored
fix: replace twitter with x (#407)
1 parent ec10609 commit cac8ba0

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/assets/socialIcons.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ const socialIcons = {
5555
<rect x="3" y="5" width="18" height="14" rx="2"></rect>
5656
<polyline points="3 7 12 13 21 7"></polyline>
5757
</svg>`,
58-
Twitter: `<svg
58+
X: `<svg
5959
xmlns="http://www.w3.org/2000/svg"
6060
class="icon-tabler"
6161
stroke-linecap="round"
6262
stroke-linejoin="round"
6363
>
64-
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
65-
<path d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z"></path>
64+
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
65+
<path d="M4 4l11.733 16h4.267l-11.733 -16z" /><path d="M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" />
6666
</svg>`,
6767
Twitch: `<svg
6868
xmlns="http://www.w3.org/2000/svg"

src/components/ShareLinks.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const shareLinks = [
1616
linkTitle: `Share this post on Facebook`,
1717
},
1818
{
19-
name: "Twitter",
20-
href: "https://twitter.com/intent/tweet?url=",
21-
linkTitle: `Tweet this post`,
19+
name: "X",
20+
href: "https://x.com/intent/post?url=",
21+
linkTitle: `Share this post on X`,
2222
},
2323
{
2424
name: "Telegram",

src/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ export const SOCIALS: SocialObjects = [
6363
active: false,
6464
},
6565
{
66-
name: "Twitter",
66+
name: "X",
6767
href: "https://github.com/satnaing/astro-paper",
68-
linkTitle: `${SITE.title} on Twitter`,
68+
linkTitle: `${SITE.title} on X`,
6969
active: false,
7070
},
7171
{

0 commit comments

Comments
 (0)