Skip to content

Commit 948004f

Browse files
committed
Remove all new social media links to make this pr smaller
1 parent 3423f03 commit 948004f

File tree

3 files changed

+1
-32
lines changed

3 files changed

+1
-32
lines changed

components/PageSocial.tsx

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import * as config from '@/lib/config'
55

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

1110
interface SocialLink {
1211
name: string
@@ -25,14 +24,6 @@ export const socialLinks: SocialLink[] = [
2524
icon: FaTwitter
2625
},
2726

28-
config.twitterX && {
29-
name: 'twitterX',
30-
href: `https://x.com/${config.twitterX}`,
31-
title: `X @${config.twitterX}`,
32-
color: "#222",
33-
icon: FaXTwitter
34-
},
35-
3627
config.github && {
3728
name: 'github',
3829
href: `https://github.com/${config.github}`,
@@ -41,14 +32,6 @@ export const socialLinks: SocialLink[] = [
4132
icon: FaGithub
4233
},
4334

44-
config.gitlab && {
45-
name: 'gitlab',
46-
href: `https://gitlab.com/${config.github}`,
47-
title: `GitLab @${config.github}`,
48-
color: "#e24329",
49-
icon: FaGitlab
50-
},
51-
5235
config.linkedin && {
5336
name: 'linkedin',
5437
href: `https://www.linkedin.com/in/${config.linkedin}`,
@@ -72,14 +55,6 @@ export const socialLinks: SocialLink[] = [
7255
color: "#ff0000",
7356
icon: FaYoutube
7457
},
75-
76-
config.bugtracker && {
77-
name: 'bugtracker',
78-
href: `${config.bugtracker}`,
79-
title: 'Bugtracker',
80-
color: "#e24329",
81-
icon: IoIosBug
82-
}
8358
].filter(Boolean)
8459

8560
export function PageSocial(prefix: string) {

lib/config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ 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)
5958
export const mastodon: string | null = getSiteConfig('mastodon', null)
6059
export const github: string | null = getSiteConfig('github', null)
61-
export const gitlab: string | null = getSiteConfig('gitlab', null)
6260
export const youtube: string | null = getSiteConfig('youtube', null)
6361
export const linkedin: string | null = getSiteConfig('linkedin', null)
6462
export const newsletter: string | null = getSiteConfig('newsletter', null)
6563
export const zhihu: string | null = getSiteConfig('zhihu', null)
66-
export const bugtracker: string | null = getSiteConfig('bugtracker', null)
6764

6865
export const getMastodonHandle = (): string | null => {
6966
if (!mastodon) {

lib/site-config.ts

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

1313
twitter?: string
14-
twitterX?: string
1514
github?: string
16-
gitlab?: string
1715
linkedin?: string
1816
newsletter?: string
1917
youtube?: string
2018
zhihu?: string
2119
mastodon?: string
22-
bugtracker?: string
2320

2421
defaultPageIcon?: string | null
2522
defaultPageCover?: string | null

0 commit comments

Comments
 (0)