mirror of
https://github.com/YouHaveTrouble/youhavetrouble.github.io.git
synced 2026-08-28 00:56:42 +00:00
update astro
This commit is contained in:
@@ -11,8 +11,8 @@ export async function GET(context: { site: any; }) {
|
||||
description: 'Something that\'s supposed to be thoughts.',
|
||||
site: context.site,
|
||||
items: posts.map((post) => ({
|
||||
link: `/blog/${post.slug}/`,
|
||||
content: sanitizeHtml(marked.parse(post.body), {
|
||||
link: `/blog/${post.id}/`,
|
||||
content: sanitizeHtml(marked.parse(post.body ?? ""), {
|
||||
allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img'])
|
||||
}),
|
||||
pubDate: new Date(post.data.publishDate),
|
||||
|
||||
Reference in New Issue
Block a user