@ -1,5 +1,6 @@
---
const allPosts = await Astro.glob('../pages/blog/*.md')
//@ts-ignore
const posts = allPosts.map(item => (Object.assign({}, item.frontmatter, {url: item.url}))).sort((a, b) => new Date(b.pubDate) - new Date(a.pubDate));