Skip to content

Commit

Permalink
Update social and sharing links
Browse files Browse the repository at this point in the history
  • Loading branch information
deeheber committed Aug 30, 2024
1 parent 00516dc commit 9c3e02c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/assets/socialIcons.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const socialIcons = {
Twitter: `<svg
X: `<svg
xmlns="http://www.w3.org/2000/svg"
class="icon-tabler"
stroke-linecap="round"
Expand Down
17 changes: 6 additions & 11 deletions src/components/ShareLinks.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ const shareLinks = [
{
name: "LinkedIn",
href: "https://www.linkedin.com/shareArticle?mini=true&url=",
linkTitle: "Share this post via LinkedIn",
linkTitle: "Share this post on LinkedIn",
},
{
name: "X",
href: "https://x.com/intent/tweet?url=",
linkTitle: `Share this post on X`,
},
{
name: "Facebook",
href: "https://www.facebook.com/sharer.php?u=",
linkTitle: `Share this post on Facebook`,
},
{
name: "Twitter",
href: "https://twitter.com/intent/tweet?url=",
linkTitle: `Tweet this post`,
},
{
name: "Dev",
href: "https://dev.to/new?url=",
linkTitle: "Share this post via Dev",
},
{
name: "Mail",
href: "mailto:?subject=See%20this%20post&body=",
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export const SOCIALS: SocialObjects = [
active: false,
},
{
name: "Twitter",
name: "X",
href: "https://x.com/deeheber",
linkTitle: `${SITE.title} on Twitter`,
linkTitle: `${SITE.title} on X`,
active: true,
},
{
Expand Down

0 comments on commit 9c3e02c

Please sign in to comment.