downgrade astro to 3.0
This commit is contained in:
@@ -18,6 +18,8 @@ const { post } = Astro.props;
|
||||
|
||||
const { data } = post;
|
||||
|
||||
console.log(post);
|
||||
|
||||
const { Content } = await post.render();
|
||||
---
|
||||
|
||||
|
||||
@@ -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)),
|
||||
})),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user