From 2ec39128c65fd0b1dafd6aebd48ac3068f40f9c5 Mon Sep 17 00:00:00 2001 From: satnaing Date: Wed, 28 Dec 2022 19:27:20 +0630 Subject: [PATCH] feat: add Mastodon social link --- src/assets/socialIcons.ts | 22 ++++++++++++++-------- src/config.ts | 6 ++++++ src/types.ts | 3 ++- 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/assets/socialIcons.ts b/src/assets/socialIcons.ts index 4988ba3..29c6782 100644 --- a/src/assets/socialIcons.ts +++ b/src/assets/socialIcons.ts @@ -194,14 +194,20 @@ const socialIcons: SocialIcons = { `, Telegram: ` - - - `, + xmlns="http://www.w3.org/2000/svg" + class="icon-tabler" + stroke-linecap="round" + stroke-linejoin="round" + > + + + `, + Mastodon: ` + + `, }; export default socialIcons; diff --git a/src/config.ts b/src/config.ts index 69a66cf..e7ef74b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -132,4 +132,10 @@ export const SOCIALS: SocialObjects = [ linkTitle: `${SITE.title} on Telegram`, active: false, }, + { + name: "Mastodon", + href: "https://github.com/satnaing/astro-paper", + linkTitle: `${SITE.title} on Mastodon`, + active: true, + }, ]; diff --git a/src/types.ts b/src/types.ts index e35b296..8f62267 100644 --- a/src/types.ts +++ b/src/types.ts @@ -40,4 +40,5 @@ export type SocialMedia = | "Reddit" | "Skype" | "Steam" - | "Telegram"; + | "Telegram" + | "Mastodon";