--- import { getEntryBySlug, getCollection } from "astro:content"; import PageLayout from "../layouts/PageLayout.astro"; import PublicationDate from "../components/PublicationDate.astro"; import TableOfContents from "../components/TableOfContents.svelte"; const home = await getEntryBySlug("home", "home"); const { Content, headings } = await home.render(); const articles = (await getCollection("blog")).sort( (a, b) => b.data.publicationDate.valueOf() - a.data.publicationDate.valueOf() ); --- { articles.map((article) => ( {article.data.title} {article.data.description} )) }
{article.data.description}