diff --git a/.env.example b/.env.example index 3d10b6a..33b14e7 100644 --- a/.env.example +++ b/.env.example @@ -8,6 +8,8 @@ TWITTER=ccbikai GITHUB=ccbikai DISCORD=https://DISCORD.com PODCASRT=https://PODCASRT.com +MASTODON=mastodon.social/@Mastodon +BLUESKY=bsky.app FOOTER_INJECT=FOOTER_INJECT HEADER_INJECT=HEADER_INJECT diff --git a/README.md b/README.md index 89816be..ffac977 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,8 @@ TIMEZONE="America/New_York" TELEGRAM=ccbikai TWITTER=ccbikai GITHUB=ccbikai +MASTODON=mastodon.social/@Mastodon +BLUESKY=bsky.app ## The following two social media need to be URLs DISCORD=https://DISCORD.com diff --git a/src/assets/bluesky.svg b/src/assets/bluesky.svg new file mode 100644 index 0000000..c605d10 --- /dev/null +++ b/src/assets/bluesky.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/assets/mastodon.svg b/src/assets/mastodon.svg new file mode 100644 index 0000000..730bf5c --- /dev/null +++ b/src/assets/mastodon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/components/header.astro b/src/components/header.astro index 85eba8e..e3d2a58 100644 --- a/src/components/header.astro +++ b/src/components/header.astro @@ -7,6 +7,8 @@ import twitter from '../assets/twitter.svg' import github from '../assets/github.svg' import discord from '../assets/discord.svg' import telegram from '../assets/telegram.svg' +import mastodon from '../assets/mastodon.svg' +import bluesky from '../assets/bluesky.svg' const { SITE_URL } = Astro.locals const { channel } = Astro.props @@ -16,6 +18,8 @@ const TWITTER = getEnv(import.meta.env, Astro, 'TWITTER') const GITHUB = getEnv(import.meta.env, Astro, 'GITHUB') const TELEGRAM = getEnv(import.meta.env, Astro, 'TELEGRAM') const DISCORD = getEnv(import.meta.env, Astro, 'DISCORD') +const MASTODON = getEnv(import.meta.env, Astro, 'MASTODON') +const BLUESKY = getEnv(import.meta.env, Astro, 'BLUESKY') const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/' --- @@ -110,6 +114,36 @@ const staticProxy = getEnv(import.meta.env, Astro, 'STATIC_PROXY') ?? '/static/' ) } + + { + MASTODON && MASTODON.length > 0 && ( + + {`@${MASTODON}`} + + ) + } + + { + BLUESKY && BLUESKY.length > 0 && ( + + {`@${BLUESKY}`} + + ) + }