Skip to content

Commit 08ff1e2

Browse files
committed
Add gitlab, instagram, reddit and bugtracker links
1 parent 631ae7b commit 08ff1e2

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

components/PageSocial.tsx

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

66
import styles from './PageSocial.module.css'
7-
import { FaGithub, FaLinkedin, FaMastodon, FaTwitter, FaYoutube } from 'react-icons/fa'
7+
import { FaGithub, FaInstagram, FaLinkedin, FaMastodon, FaReddit, FaTwitter, FaYoutube } from 'react-icons/fa'
88
import { FaXTwitter, FaGitlab, FaEnvelopeOpenText } from 'react-icons/fa6'
99
import { IoIosBug } from 'react-icons/io'
1010

@@ -27,7 +27,7 @@ export const socialLinks: SocialLink[] = [
2727
config.twitterX && {
2828
name: 'twitterX',
2929
href: `https://x.com/${config.twitterX}`,
30-
title: `X @${config.twitterX}`,
30+
title: `X.com @${config.twitterX}`,
3131
color: "#222",
3232
icon: FaXTwitter
3333
},
@@ -75,11 +75,27 @@ export const socialLinks: SocialLink[] = [
7575
config.youtube && {
7676
name: 'youtube',
7777
href: `https://www.youtube.com/${config.youtube}`,
78-
title: `YouTube ${config.youtube}`,
78+
title: `YouTube @${config.youtube}`,
7979
color: "#ff0000",
8080
icon: FaYoutube
8181
},
8282

83+
config.instagram && {
84+
name: 'instagram',
85+
href: `https://instagram.com/${config.instagram}`,
86+
title: `Instagram @${config.instagram}`,
87+
color: "#ff0000",
88+
icon: FaInstagram
89+
},
90+
91+
config.reddit && {
92+
name: 'reddit',
93+
href: `https://www.reddit.com/u/${config.reddit}`,
94+
title: `Reddit @${config.reddit}`,
95+
color: "#ff0000",
96+
icon: FaReddit
97+
},
98+
8399
config.bugtracker && {
84100
name: 'bugtracker',
85101
href: `${config.bugtracker}`,

lib/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ export const mastodon: string | null = getSiteConfig('mastodon', null)
6060
export const github: string | null = getSiteConfig('github', null)
6161
export const gitlab: string | null = getSiteConfig('gitlab', null)
6262
export const youtube: string | null = getSiteConfig('youtube', null)
63+
export const instagram: string | null = getSiteConfig('instagram', null)
64+
export const reddit: string | null = getSiteConfig('reddit', null)
6365
export const linkedin: string | null = getSiteConfig('linkedin', null)
6466
export const newsletter: string | null = getSiteConfig('newsletter', null)
6567
export const zhihu: string | null = getSiteConfig('zhihu', null)

lib/site-config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export interface SiteConfig {
1717
linkedin?: string
1818
newsletter?: string
1919
youtube?: string
20+
instagram?: string
21+
reddit?: string
2022
zhihu?: string
2123
mastodon?: string
2224
bugtracker?: string

site.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,19 @@ export default siteConfig({
1818

1919
// social usernames (optional)
2020
twitter: 'transitive_bs',
21+
// twitterX: 'transitive_bs', // If you want to use X.com logo instead
22+
// mastodon: '#' // optional mastodon profile URL, provides link verification
23+
2124
github: 'transitive-bullshit',
25+
// gitlab: 'transitive-bullshit', // optional gitlab account
26+
2227
linkedin: 'fisch2',
2328
// mastodon: '#', // optional mastodon profile URL, provides link verification
2429
// newsletter: '#', // optional newsletter URL
2530
// youtube: '#', // optional youtube channel name or `channel/UCGbXXXXXXXXXXXXXXXXXXXXXX`
31+
// instagram: '#', // optional instagram account
32+
// reddit: '#', // optional reddit account
33+
// bugtracker: '#', // optional bugtracker URL
2634

2735
// default notion icon and cover images for site-wide consistency (optional)
2836
// page-specific values will override these site-wide defaults

0 commit comments

Comments
 (0)