--- import profileData from '../data/profile.json'; import Icon from "../components/icon.svelte"; const profileName = profileData.name; const personalLinks = []; const profesionalLinks = []; for (let link of profileData.personalLinks) { const withUrl = {...link}; withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`); personalLinks.push(withUrl); } for (let link of profileData.profesionalLinks) { const withUrl = {...link}; withUrl.iconUrl = Astro.resolve(`../icons/${link.icon}.svg`); profesionalLinks.push(withUrl); } --- {profileName} | Links
Rafael González

{profileName}

{profileData.description}

Personal Links

{personalLinks.map(perLink => ( ))}

Profesional Links

{profesionalLinks.map(perLink => ( ))}