From a80915c1b2d350b5ec6e87e0251c453be6715e03 Mon Sep 17 00:00:00 2001 From: joyzhao Date: Sat, 21 Jun 2025 09:41:33 +0800 Subject: [PATCH] fix: temporarily hide LinkedIn links and share button Remove LinkedIn integration from AuthorCard, ShareButtons, and homepage components while keeping the code commented for potential future restoration --- src/components/AuthorCard.tsx | 2 ++ src/components/ShareButtons.tsx | 2 ++ src/pages/index.astro | 5 ++++- src/pages/zh/index.astro | 5 ++++- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/AuthorCard.tsx b/src/components/AuthorCard.tsx index 01f32fc..90f6f81 100644 --- a/src/components/AuthorCard.tsx +++ b/src/components/AuthorCard.tsx @@ -93,6 +93,7 @@ export default function AuthorCard({ lang, author }: AuthorCardProps) { )} + {/* LinkedIn link temporarily hidden {authorInfo.linkedin && ( )} + */} diff --git a/src/components/ShareButtons.tsx b/src/components/ShareButtons.tsx index 5cfcb93..41cae11 100644 --- a/src/components/ShareButtons.tsx +++ b/src/components/ShareButtons.tsx @@ -29,6 +29,7 @@ export default function ShareButtons({ lang, title, url }: ShareButtonsProps) { ), color: 'hover:bg-blue-500/10 hover:text-blue-500' }, + /* LinkedIn share button temporarily hidden { name: 'LinkedIn', url: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(shareUrl)}`, @@ -39,6 +40,7 @@ export default function ShareButtons({ lang, title, url }: ShareButtonsProps) { ), color: 'hover:bg-blue-600/10 hover:text-blue-600' }, + */ { name: 'Facebook', url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`, diff --git a/src/pages/index.astro b/src/pages/index.astro index d08142a..89bd302 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -5,7 +5,8 @@ import SkillsMarquee from "@/components/SkillsMarquee"; import TypewriterEffect from "@/components/TypewriterEffect"; import Footer from "@/components/Footer"; import Container from "@/components/ui/Container"; -import { useTranslations, type Lang } from "@/i18n/utils"; +import { useTranslations } from "@/i18n/utils"; +import type { Lang } from "@/types/i18n"; import { defaultLang } from "@/i18n/ui"; import { personalInfo, services } from "@/lib/data"; @@ -120,6 +121,7 @@ const pageTitle = t('site.title'); GitHub + {/* LinkedIn link temporarily hidden LinkedIn + */} diff --git a/src/pages/zh/index.astro b/src/pages/zh/index.astro index fda523e..d221ece 100644 --- a/src/pages/zh/index.astro +++ b/src/pages/zh/index.astro @@ -5,7 +5,8 @@ import SkillsMarquee from "@/components/SkillsMarquee"; import TypewriterEffect from "@/components/TypewriterEffect"; import Footer from "@/components/Footer"; import Container from "@/components/ui/Container"; -import { useTranslations, type Lang } from "@/i18n/utils"; +import { useTranslations } from "@/i18n/utils"; +import type { Lang } from "@/types/i18n"; import { defaultLang } from "@/i18n/ui"; import { personalInfo, services } from "@/lib/data"; @@ -120,6 +121,7 @@ const pageTitle = t('site.title'); GitHub + {/* LinkedIn link temporarily hidden 领英 + */}