From 9577cd8bc6533e2635f7e7dc51e5ef676cf1aa6a Mon Sep 17 00:00:00 2001 From: Atridad Lahiji Date: Thu, 12 Jun 2025 16:24:55 -0600 Subject: [PATCH] Icon handling was gross before. Fixing --- src/pages/resume.astro | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/pages/resume.astro b/src/pages/resume.astro index 53704cd..916d069 100644 --- a/src/pages/resume.astro +++ b/src/pages/resume.astro @@ -193,26 +193,9 @@ if (!data) {
{data.sections.profiles.items.map( (profile) => { - let iconName = "mdi:web"; - const networkLower = - profile.network.toLowerCase(); - if (networkLower === "github") { - iconName = "simple-icons:github"; - } else if ( - networkLower === "linkedin" - ) { - iconName = - "simple-icons:linkedin"; - } else if ( - networkLower === "twitter" - ) { - iconName = "simple-icons:x"; - } else if ( - networkLower === "youtube" - ) { - iconName = - "simple-icons:youtube"; - } + // Use Simple Icons directly based on network name + // Convert network name to lowercase and use simple-icons format + const iconName = `simple-icons:${profile.network.toLowerCase()}`; return (