From e3141794b95e534656427fadf0354435c62254d6 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Thu, 10 Apr 2025 21:42:41 +0200 Subject: Fix formatting --- src/pages/portfolio/[id].astro | 75 +++++++++++++++++++++++------------------ src/pages/portfolio/index.astro | 2 +- 2 files changed, 44 insertions(+), 33 deletions(-) (limited to 'src/pages/portfolio') diff --git a/src/pages/portfolio/[id].astro b/src/pages/portfolio/[id].astro index 55bac3f..b92ecbd 100644 --- a/src/pages/portfolio/[id].astro +++ b/src/pages/portfolio/[id].astro @@ -5,51 +5,62 @@ import { type GetStaticPaths } from "astro"; import TechnologyBadge from "../../partials/TechnologyBadge.astro"; interface Props { - entry: any; + entry: any; } -export const getStaticPaths: GetStaticPaths = (async () => { - const entries = await getCollection("portfolio"); - return entries.map((entry: any) => ({ - params: { id: entry.id }, - props: { entry }, - })); -}); +export const getStaticPaths: GetStaticPaths = async () => { + const entries = await getCollection("portfolio"); + return entries.map((entry: any) => ({ + params: { id: entry.id }, + props: { entry }, + })); +}; const { entry } = Astro.props; const { Content } = await render(entry); --- - - - - - Volver al portfolio - + + + + + Volver al portfolio + -

{entry.data.title}

+

{entry.data.title}

- + -

Tecnologías utilizadas

+

Tecnologías utilizadas

- {entry.data.technologies.map((technology: string) => ( - - ))} + { + entry.data.technologies.map((technology: string) => ( + + )) + }
diff --git a/src/pages/portfolio/index.astro b/src/pages/portfolio/index.astro index 63840f5..17c4637 100644 --- a/src/pages/portfolio/index.astro +++ b/src/pages/portfolio/index.astro @@ -2,4 +2,4 @@ import PortfolioPageLayout from "../../layouts/PortfolioPageLayout.astro"; --- - \ No newline at end of file + -- cgit v1.3