mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
style: format file with prettier
This commit is contained in:
@@ -11,12 +11,11 @@ export async function get() {
|
|||||||
title: SITE.title,
|
title: SITE.title,
|
||||||
description: SITE.desc,
|
description: SITE.desc,
|
||||||
site: SITE.website,
|
site: SITE.website,
|
||||||
items: sortedPosts
|
items: sortedPosts.map(({ data }) => ({
|
||||||
.map(({ data }) => ({
|
link: `posts/${slugify(data)}`,
|
||||||
link: `posts/${slugify(data)}`,
|
title: data.title,
|
||||||
title: data.title,
|
description: data.description,
|
||||||
description: data.description,
|
pubDate: new Date(data.pubDatetime),
|
||||||
pubDate: new Date(data.pubDatetime),
|
})),
|
||||||
})),
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user