Add support for Mastodon link in footer

This commit is contained in:
Isaac Overacker
2022-11-12 21:26:41 -08:00
parent fff575728f
commit aafab40f68
5 changed files with 30 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import * as React from 'react'
import { FaEnvelopeOpenText } from '@react-icons/all-files/fa/FaEnvelopeOpenText'
import { FaGithub } from '@react-icons/all-files/fa/FaGithub'
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin'
import { FaMastodon } from '@react-icons/all-files/fa/FaMastodon'
import { FaTwitter } from '@react-icons/all-files/fa/FaTwitter'
import { FaYoutube } from '@react-icons/all-files/fa/FaYoutube'
import { FaZhihu } from '@react-icons/all-files/fa/FaZhihu'
@@ -63,6 +64,17 @@ export const FooterImpl: React.FC = () => {
</a>
)}
{config.mastodon && (
<a
className={styles.mastodon}
href={config.mastodon}
title={`Mastodon ${config.getMastodonHandle()}`}
rel='me'
>
<FaMastodon />
</a>
)}
{config.zhihu && (
<a
className={styles.zhihu}

View File

@@ -93,6 +93,10 @@
color: #2795e9;
}
.mastodon:hover {
color: #5a4be1;
}
.zhihu:hover {
color: #0066ff;
}