0
mirror of https://github.com/valentineus/popov.link.git synced 2025-06-07 10:33:34 +03:00
popov.link/src/pages/index.astro

14 lines
296 B
Plaintext

---
import { getCollection } from "astro:content";
import Element from "../components/PostElement.astro";
import Layout from "../layouts/BaseLayout.astro";
const posts = await getCollection("blog");
---
<Layout>
<section>
{posts.map((post) => <Element post={post} />)}
</section>
</Layout>