Skip to content

Commit 7bee615

Browse files
committed
fix: social link show when not set
1 parent 1c907e7 commit 7bee615

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ startYear: 2017 # Leave empty if you do not want to display a start year.
5555
socialMedia:
5656
github_username: ZL-Asica # Your GitHub username. https://github.com/username
5757
linkedin_username: elara-liu # Your LinkedIn username. https://www.linkedin.com/in/username
58-
instagram_id: zl_asica # Your Instagram username.
58+
instagram_id: # Your Instagram username.
5959
orcid_id: 0009-0008-7221-2324 # Your ORCID iD.
6060
telegram_username: zl_asica # Your Telegram username. https://t.me/username
6161
bluesky_username: zla.app # Your Bluesky username (without prefix). https://bsky.app/profile/{username}

src/components/common/SocialMediaLinks.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ const SocialMediaLinks = ({
3131
className={`mx-4 mb-5 flex flex-wrap justify-center gap-y-4 space-x-4 ${className}`}
3232
>
3333
{Object.entries(socialMedia)
34-
.filter(([key, _]) => key in socialData)
34+
.filter(([key, username]) => key in socialData && username !== null)
3535
.map(([key, username]) => {
3636
const { urlTemplate, icon: IconComponent } = socialData[key as SocialMediaKey];
3737

3838
const label = upperFirst(words(key)[0]);
39-
if (key === 'rss' && username !== '' && username !== 'false') {
39+
if (key === 'rss' && username !== 'false') {
4040
username = `/feed.xml`;
4141
}
4242
return (

0 commit comments

Comments
 (0)