downgrade astro to 3.0
This commit is contained in:
Vendored
+1
-1
@@ -419,5 +419,5 @@ declare module 'astro:content' {
|
|||||||
|
|
||||||
type AnyEntryMap = ContentEntryMap & DataEntryMap;
|
type AnyEntryMap = ContentEntryMap & DataEntryMap;
|
||||||
|
|
||||||
type ContentConfig = typeof import("../src/content/config.js");
|
type ContentConfig = typeof import("../src/content/config");
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
"@astrojs/mdx": "2.1.0",
|
"@astrojs/mdx": "2.1.0",
|
||||||
"@astrojs/netlify": "5.0.0",
|
"@astrojs/netlify": "5.0.0",
|
||||||
"@astrojs/rss": "4.0.4",
|
"@astrojs/rss": "4.0.4",
|
||||||
"astro": "4.2.6",
|
"astro": "^3.0.0",
|
||||||
"astro-icon": "^1.1.0",
|
"astro-icon": "^1.1.0",
|
||||||
"date-fns": "^3.3.1",
|
"date-fns": "^3.3.1",
|
||||||
"date-fns-tz": "^1.3.7",
|
"date-fns-tz": "^1.3.7",
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ const { post } = Astro.props;
|
|||||||
|
|
||||||
const { data } = post;
|
const { data } = post;
|
||||||
|
|
||||||
|
console.log(post);
|
||||||
|
|
||||||
const { Content } = await post.render();
|
const { Content } = await post.render();
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export async function get(context) {
|
|||||||
.map((post) => ({
|
.map((post) => ({
|
||||||
title: post.data.title,
|
title: post.data.title,
|
||||||
pubDate: post.data.pubDate,
|
pubDate: post.data.pubDate,
|
||||||
link: `/posts/${post.slug}/`,
|
link: `/posts/${post.slug}`,
|
||||||
content: sanitizeHtml(parser.render(post.body)),
|
content: sanitizeHtml(parser.render(post.body)),
|
||||||
})),
|
})),
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user