From 54dab1e00b38693e96c801d0c5a020693a35bbda Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> Date: Fri, 14 Mar 2025 22:21:47 +0100 Subject: Refactor SCSS imports to use @use syntax, update portfolio entries, and add new projects --- src/pages/blog/[id].astro | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/pages/blog') diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro index 50bf998..e1b5250 100644 --- a/src/pages/blog/[id].astro +++ b/src/pages/blog/[id].astro @@ -1,15 +1,19 @@ --- -import type { GetStaticPaths } from "astro"; import Layout from "../../layouts/Layout.astro"; import { getCollection, render } from "astro:content"; +import { type GetStaticPaths } from "astro"; -export const getStaticPaths = (async () => { +interface Props { + entry: any; +} + +export const getStaticPaths: GetStaticPaths = (async () => { const entries = await getCollection("blog"); - return entries.map((entry) => ({ + return entries.map((entry: any) => ({ params: { id: entry.id }, props: { entry }, })); -}) satisfies GetStaticPaths; +}); const { entry } = Astro.props; const { Content } = await render(entry); -- cgit v1.3