diff --git a/.astro/types.d.ts b/.astro/types.d.ts index d5a5362..9f41c5d 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -165,11 +165,11 @@ declare module 'astro:content' { ? { collection: C; slug: ValidContentEntrySlug; - } + } : { collection: C; id: keyof DataEntryMap[C]; - } + } >; // Allow generic `string` to avoid excessive type errors in the config // if `dev` is not running to update as you edit. @@ -419,5 +419,5 @@ declare module 'astro:content' { type AnyEntryMap = ContentEntryMap & DataEntryMap; - type ContentConfig = typeof import("../src/content/config.js"); + type ContentConfig = typeof import("../src/content/config"); } diff --git a/bun.lockb b/bun.lockb index ed6fbba..db84d41 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index d47605a..50cdd8b 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@astrojs/mdx": "2.1.0", "@astrojs/netlify": "5.0.0", "@astrojs/rss": "4.0.4", - "astro": "4.2.6", + "astro": "^3.0.0", "astro-icon": "^1.1.0", "date-fns": "^3.3.1", "date-fns-tz": "^1.3.7", diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index bd76953..c5baaad 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -18,6 +18,8 @@ const { post } = Astro.props; const { data } = post; +console.log(post); + const { Content } = await post.render(); --- diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 2b6ae81..8835859 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -16,7 +16,7 @@ export async function get(context) { .map((post) => ({ title: post.data.title, pubDate: post.data.pubDate, - link: `/posts/${post.slug}/`, + link: `/posts/${post.slug}`, content: sanitizeHtml(parser.render(post.body)), })), });