popov.link/src/pages/index.astro
Valentin Popov 4ba339984d
All checks were successful
Test / test (push) Successful in 38s
Test / test (pull_request) Successful in 36s
Updated the main page and page structures
2024-09-12 13:11:16 +00:00

14 lines
296 B
Plaintext

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