downgrade astro to 3.0

This commit is contained in:
2024-04-12 21:30:54 -04:00
parent 4401ba6c16
commit 99072547c1
5 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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");
}
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -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",
+2
View File
@@ -18,6 +18,8 @@ const { post } = Astro.props;
const { data } = post;
console.log(post);
const { Content } = await post.render();
---
+1 -1
View File
@@ -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)),
})),
});