--- import { getCollection } from "astro:content"; import General from "@layouts/General.astro"; import Summary from "@components/Summary.astro"; const posts = (await getCollection("blog")).filter(entry => !entry.data.draft); posts.sort((a, b) => new Date(b.data.pubDate).getTime() - new Date(a.data.pubDate).getTime()); --- { posts.map((post) => ( )) }