Skip to content

Commit

Permalink
Merge pull request #1058 from trillium/ts.upstream_add_bluesky
Browse files Browse the repository at this point in the history
Add bluesky
  • Loading branch information
timlrx authored Nov 11, 2024
2 parents 7dd291e + 0e5db5f commit c909bd2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default function Footer() {
<SocialIcon kind="youtube" href={siteMetadata.youtube} size={6} />
<SocialIcon kind="linkedin" href={siteMetadata.linkedin} size={6} />
<SocialIcon kind="twitter" href={siteMetadata.twitter} size={6} />
<SocialIcon kind="bluesky" href={siteMetadata.bluesky} size={6} />
<SocialIcon kind="x" href={siteMetadata.x} size={6} />
<SocialIcon kind="instagram" href={siteMetadata.instagram} size={6} />
<SocialIcon kind="threads" href={siteMetadata.threads} size={6} />
Expand Down
8 changes: 8 additions & 0 deletions components/social-icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,11 @@ export function Medium(svgProps: SVGProps<SVGSVGElement>) {
</svg>
)
}
export function Bluesky(svgProps: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...svgProps}>
<title>Bluesky</title>
<path d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565C.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479c.815 2.736 3.713 3.66 6.383 3.364q.204-.03.415-.056q-.207.033-.415.056c-3.912.58-7.387 2.005-2.83 7.078c5.013 5.19 6.87-1.113 7.823-4.308c.953 3.195 2.05 9.271 7.733 4.308c4.267-4.308 1.172-6.498-2.74-7.078a9 9 0 0 1-.415-.056q.21.026.415.056c2.67.297 5.568-.628 6.383-3.364c.246-.828.624-5.79.624-6.478c0-.69-.139-1.861-.902-2.206c-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8" />
</svg>
)
}
2 changes: 2 additions & 0 deletions components/social-icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
Threads,
Instagram,
Medium,
Bluesky,
} from './icons'

const components = {
Expand All @@ -24,6 +25,7 @@ const components = {
threads: Threads,
instagram: Instagram,
medium: Medium,
bluesky: Bluesky,
}

type SocialIconProps = {
Expand Down
1 change: 1 addition & 0 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const Authors = defineDocumentType(() => ({
company: { type: 'string' },
email: { type: 'string' },
twitter: { type: 'string' },
bluesky: { type: 'string' },
linkedin: { type: 'string' },
github: { type: 'string' },
layout: { type: 'string' },
Expand Down
1 change: 1 addition & 0 deletions data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const siteMetadata = {
threads: 'https://www.threads.net',
instagram: 'https://www.instagram.com',
medium: 'https://medium.com',
bluesky: 'https://bsky.app/',
locale: 'en-US',
// set to true if you want a navbar fixed to the top
stickyNav: false,
Expand Down
3 changes: 2 additions & 1 deletion layouts/AuthorLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
}

export default function AuthorLayout({ children, content }: Props) {
const { name, avatar, occupation, company, email, twitter, linkedin, github } = content
const { name, avatar, occupation, company, email, twitter, bluesky, linkedin, github } = content

return (
<>
Expand Down Expand Up @@ -38,6 +38,7 @@ export default function AuthorLayout({ children, content }: Props) {
<SocialIcon kind="github" href={github} />
<SocialIcon kind="linkedin" href={linkedin} />
<SocialIcon kind="x" href={twitter} />
<SocialIcon kind="bluesky" href={bluesky} />
</div>
</div>
<div className="prose max-w-none pb-8 pt-8 dark:prose-invert xl:col-span-2">
Expand Down

0 comments on commit c909bd2

Please sign in to comment.