From b84463c9df2836174d01d1529a09b9070e9aadd4 Mon Sep 17 00:00:00 2001 From: AdrianoDev Date: Sun, 5 Jul 2026 16:33:39 +0200 Subject: [PATCH] feat: tag short-name membri team --- src/components/home/TeamSection.astro | 2 +- src/data/content-seed.ts | 1 + src/pages/about.astro | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/home/TeamSection.astro b/src/components/home/TeamSection.astro index baa0def..8deb82a 100644 --- a/src/components/home/TeamSection.astro +++ b/src/components/home/TeamSection.astro @@ -20,7 +20,7 @@ const imgOf = (name: string) => Object.entries(images).find(([p]) => p.includes( return (
-
{m.shortName}
+
); })} diff --git a/src/data/content-seed.ts b/src/data/content-seed.ts index 7783e90..936b7a8 100644 --- a/src/data/content-seed.ts +++ b/src/data/content-seed.ts @@ -124,6 +124,7 @@ export const contentSeed: SeedEntry[] = [ const slug = m.shortName.toLowerCase(); return [ T(`team.${slug}.name`, m.name, []), + T(`team.${slug}.short-name`, m.shortName), T(`team.${slug}.role`, m.role, []), T(`team.${slug}.bio`, m.bio), I(`team.${slug}.image`), diff --git a/src/pages/about.astro b/src/pages/about.astro index 9e90637..a3674aa 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -96,7 +96,7 @@ export const prerender = true; return (
{m.imageAbout && imgOf(m.imageAbout) && } -

{m.shortName}

+
@@ -110,7 +110,7 @@ export const prerender = true; return (
{m.imageAbout && imgOf(m.imageAbout) && } -

{m.shortName}

+