Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add twitterX, Gitlab, Instagram, Reddit and Bugtracker social links #646

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add gitlab, instagram, reddit and bugtracker links
  • Loading branch information
onnimonni committed Nov 1, 2024
commit 08ff1e2f9679944252dbd2326e7e04fa3f928169
22 changes: 19 additions & 3 deletions components/PageSocial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import cs from 'classnames'
import * as config from '@/lib/config'

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

Expand All @@ -27,7 +27,7 @@ export const socialLinks: SocialLink[] = [
config.twitterX && {
name: 'twitterX',
href: `https://x.com/${config.twitterX}`,
title: `X @${config.twitterX}`,
title: `X.com @${config.twitterX}`,
color: "#222",
icon: FaXTwitter
},
Expand Down Expand Up @@ -75,11 +75,27 @@ export const socialLinks: SocialLink[] = [
config.youtube && {
name: 'youtube',
href: `https://www.youtube.com/${config.youtube}`,
title: `YouTube ${config.youtube}`,
title: `YouTube @${config.youtube}`,
color: "#ff0000",
icon: FaYoutube
},

config.instagram && {
name: 'instagram',
href: `https://instagram.com/${config.instagram}`,
title: `Instagram @${config.instagram}`,
color: "#ff0000",
icon: FaInstagram
},

config.reddit && {
name: 'reddit',
href: `https://www.reddit.com/u/${config.reddit}`,
title: `Reddit @${config.reddit}`,
color: "#ff0000",
icon: FaReddit
},

config.bugtracker && {
name: 'bugtracker',
href: `${config.bugtracker}`,
Expand Down
2 changes: 2 additions & 0 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export const mastodon: string | null = getSiteConfig('mastodon', null)
export const github: string | null = getSiteConfig('github', null)
export const gitlab: string | null = getSiteConfig('gitlab', null)
export const youtube: string | null = getSiteConfig('youtube', null)
export const instagram: string | null = getSiteConfig('instagram', null)
export const reddit: string | null = getSiteConfig('reddit', null)
export const linkedin: string | null = getSiteConfig('linkedin', null)
export const newsletter: string | null = getSiteConfig('newsletter', null)
export const zhihu: string | null = getSiteConfig('zhihu', null)
Expand Down
2 changes: 2 additions & 0 deletions lib/site-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export interface SiteConfig {
linkedin?: string
newsletter?: string
youtube?: string
instagram?: string
reddit?: string
zhihu?: string
mastodon?: string
bugtracker?: string
Expand Down
8 changes: 8 additions & 0 deletions site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ export default siteConfig({

// social usernames (optional)
twitter: 'transitive_bs',
// twitterX: 'transitive_bs', // If you want to use X.com logo instead
// mastodon: '#' // optional mastodon profile URL, provides link verification

github: 'transitive-bullshit',
// gitlab: 'transitive-bullshit', // optional gitlab account

linkedin: 'fisch2',
// mastodon: '#', // optional mastodon profile URL, provides link verification
// newsletter: '#', // optional newsletter URL
// youtube: '#', // optional youtube channel name or `channel/UCGbXXXXXXXXXXXXXXXXXXXXXX`
// instagram: '#', // optional instagram account
// reddit: '#', // optional reddit account
// bugtracker: '#', // optional bugtracker URL

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