From 6bd7c45dd6c477c2f288a26f9dddcaff6b14d73e Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 13 Aug 2026 20:24:43 -0700 Subject: migrate codebase to astro blog v7 --- src/pages/micro/[...slug].astro | 6 +++--- src/pages/micro/index.astro | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pages/micro') diff --git a/src/pages/micro/[...slug].astro b/src/pages/micro/[...slug].astro index 0ad6f8b..099d78f 100644 --- a/src/pages/micro/[...slug].astro +++ b/src/pages/micro/[...slug].astro @@ -1,18 +1,18 @@ --- -import { CollectionEntry, getCollection } from 'astro:content'; +import { CollectionEntry, getCollection, render } from 'astro:content'; import BlogPost from '../../layouts/BlogPost.astro'; export async function getStaticPaths() { const posts = await getCollection('micro'); return posts.map((post) => ({ - params: { slug: post.slug }, + params: { slug: post.id }, props: post, })); } type Props = CollectionEntry<'micro'>; const post = Astro.props; -const { Content } = await post.render(); +const { Content } = await render(post); --- diff --git a/src/pages/micro/index.astro b/src/pages/micro/index.astro index 7393216..1abc9df 100644 --- a/src/pages/micro/index.astro +++ b/src/pages/micro/index.astro @@ -42,7 +42,7 @@ const posts = (await getCollection('micro')).sort( posts.map((post) => (
  • - {post.data.title} + {post.data.title}
  • )) } -- cgit v1.2.3