diff options
| author | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 22:21:47 +0100 |
|---|---|---|
| committer | Ariel Costas Guerrero <94913521+arielcostas@users.noreply.github.com> | 2025-03-14 22:21:47 +0100 |
| commit | 54dab1e00b38693e96c801d0c5a020693a35bbda (patch) | |
| tree | e0c61e6b694a1e8c8a6618671a9f5c738e6e621f /src/pages/blog | |
| parent | 847294bbf1b4bfa213b7ac03757aa2cf444c31bd (diff) | |
Refactor SCSS imports to use @use syntax, update portfolio entries, and add new projects
Diffstat (limited to 'src/pages/blog')
| -rw-r--r-- | src/pages/blog/[id].astro | 12 |
1 files changed, 8 insertions, 4 deletions
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); |
