Skip to content

Commit 631ae7b

Browse files
committed
Revert "Remove all new social media links to make this pr smaller"
This reverts commit 948004f.
1 parent 6dd515c commit 631ae7b

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

components/PageSocial.tsx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import cs from 'classnames'
44
import * as config from '@/lib/config'
55

66
import styles from './PageSocial.module.css'
7-
import { FaGithub, FaLinkedin, FaTwitter, FaYoutube } from 'react-icons/fa'
8-
import { FaEnvelopeOpenText } from 'react-icons/fa6'
7+
import { FaGithub, FaLinkedin, FaMastodon, FaTwitter, FaYoutube } from 'react-icons/fa'
8+
import { FaXTwitter, FaGitlab, FaEnvelopeOpenText } from 'react-icons/fa6'
9+
import { IoIosBug } from 'react-icons/io'
910

1011
interface SocialLink {
1112
name: string
@@ -23,6 +24,13 @@ export const socialLinks: SocialLink[] = [
2324
color: "#2795e9",
2425
icon: FaTwitter
2526
},
27+
config.twitterX && {
28+
name: 'twitterX',
29+
href: `https://x.com/${config.twitterX}`,
30+
title: `X @${config.twitterX}`,
31+
color: "#222",
32+
icon: FaXTwitter
33+
},
2634

2735
config.mastodon && {
2836
name: 'mastodon',
@@ -40,6 +48,14 @@ export const socialLinks: SocialLink[] = [
4048
icon: FaGithub
4149
},
4250

51+
config.gitlab && {
52+
name: 'gitlab',
53+
href: `https://gitlab.com/${config.github}`,
54+
title: `GitLab @${config.github}`,
55+
color: "#e24329",
56+
icon: FaGitlab
57+
},
58+
4359
config.linkedin && {
4460
name: 'linkedin',
4561
href: `https://www.linkedin.com/in/${config.linkedin}`,
@@ -63,6 +79,14 @@ export const socialLinks: SocialLink[] = [
6379
color: "#ff0000",
6480
icon: FaYoutube
6581
},
82+
83+
config.bugtracker && {
84+
name: 'bugtracker',
85+
href: `${config.bugtracker}`,
86+
title: 'Bugtracker',
87+
color: "#e24329",
88+
icon: IoIosBug
89+
}
6690
].filter(Boolean)
6791

6892
export function PageSocial(prefix: string) {

lib/config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ export const language: string = getSiteConfig('language', 'en')
5555

5656
// social accounts
5757
export const twitter: string | null = getSiteConfig('twitter', null)
58+
export const twitterX: string | null = getSiteConfig('twitterX', null)
5859
export const mastodon: string | null = getSiteConfig('mastodon', null)
5960
export const github: string | null = getSiteConfig('github', null)
61+
export const gitlab: string | null = getSiteConfig('gitlab', null)
6062
export const youtube: string | null = getSiteConfig('youtube', null)
6163
export const linkedin: string | null = getSiteConfig('linkedin', null)
6264
export const newsletter: string | null = getSiteConfig('newsletter', null)
6365
export const zhihu: string | null = getSiteConfig('zhihu', null)
66+
export const bugtracker: string | null = getSiteConfig('bugtracker', null)
6467

6568
export const getMastodonHandle = (): string | null => {
6669
if (!mastodon) {

lib/site-config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ export interface SiteConfig {
1111
language?: string
1212

1313
twitter?: string
14+
twitterX?: string
1415
github?: string
16+
gitlab?: string
1517
linkedin?: string
1618
newsletter?: string
1719
youtube?: string
1820
zhihu?: string
1921
mastodon?: string
22+
bugtracker?: string
2023

2124
defaultPageIcon?: string | null
2225
defaultPageCover?: string | null

0 commit comments

Comments
 (0)