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
This commit is contained in:
joyzhao
2025-06-21 09:41:33 +08:00
parent a8c3d4b197
commit a80915c1b2
4 changed files with 12 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ export default function AuthorCard({ lang, author }: AuthorCardProps) {
</a> </a>
)} )}
{/* LinkedIn link temporarily hidden
{authorInfo.linkedin && ( {authorInfo.linkedin && (
<a <a
href={authorInfo.linkedin} href={authorInfo.linkedin}
@@ -106,6 +107,7 @@ export default function AuthorCard({ lang, author }: AuthorCardProps) {
</svg> </svg>
</a> </a>
)} )}
*/}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -29,6 +29,7 @@ export default function ShareButtons({ lang, title, url }: ShareButtonsProps) {
), ),
color: 'hover:bg-blue-500/10 hover:text-blue-500' color: 'hover:bg-blue-500/10 hover:text-blue-500'
}, },
/* LinkedIn share button temporarily hidden
{ {
name: 'LinkedIn', name: 'LinkedIn',
url: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(shareUrl)}`, 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' color: 'hover:bg-blue-600/10 hover:text-blue-600'
}, },
*/
{ {
name: 'Facebook', name: 'Facebook',
url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`, url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(shareUrl)}`,

View File

@@ -5,7 +5,8 @@ import SkillsMarquee from "@/components/SkillsMarquee";
import TypewriterEffect from "@/components/TypewriterEffect"; import TypewriterEffect from "@/components/TypewriterEffect";
import Footer from "@/components/Footer"; import Footer from "@/components/Footer";
import Container from "@/components/ui/Container"; 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 { defaultLang } from "@/i18n/ui";
import { personalInfo, services } from "@/lib/data"; import { personalInfo, services } from "@/lib/data";
@@ -120,6 +121,7 @@ const pageTitle = t('site.title');
GitHub GitHub
</a> </a>
{/* LinkedIn link temporarily hidden
<a <a
href={personalInfo.linkedin} href={personalInfo.linkedin}
target="_blank" target="_blank"
@@ -131,6 +133,7 @@ const pageTitle = t('site.title');
</svg> </svg>
LinkedIn LinkedIn
</a> </a>
*/}
</div> </div>
</div> </div>

View File

@@ -5,7 +5,8 @@ import SkillsMarquee from "@/components/SkillsMarquee";
import TypewriterEffect from "@/components/TypewriterEffect"; import TypewriterEffect from "@/components/TypewriterEffect";
import Footer from "@/components/Footer"; import Footer from "@/components/Footer";
import Container from "@/components/ui/Container"; 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 { defaultLang } from "@/i18n/ui";
import { personalInfo, services } from "@/lib/data"; import { personalInfo, services } from "@/lib/data";
@@ -120,6 +121,7 @@ const pageTitle = t('site.title');
GitHub GitHub
</a> </a>
{/* LinkedIn link temporarily hidden
<a <a
href={personalInfo.linkedin} href={personalInfo.linkedin}
target="_blank" target="_blank"
@@ -131,6 +133,7 @@ const pageTitle = t('site.title');
</svg> </svg>
领英 领英
</a> </a>
*/}
</div> </div>
</div> </div>