🔍 Improve SEO and RSS feed!

This commit is contained in:
2024-08-16 16:53:23 +08:00
parent 8ae48257cf
commit 4464c6557a
5 changed files with 103 additions and 3 deletions

View File

@ -6,6 +6,8 @@ export default defineSitemapEventHandler(async () => {
return result.data.map((item: any) => asSitemapUrl({
loc: `/posts/${item.id}`,
lastmod: item.edited_at ?? item.published_at,
priority: 0.9,
_sitemap: "posts",
}));
})