diff options
author | Valentin Popov <valentin@popov.link> | 2024-09-12 16:11:16 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-09-12 16:11:16 +0300 |
commit | 4ba339984d239180a526a5ae8ffbb558f1b5642a (patch) | |
tree | 4dbc5e555c995842e6eea7348f467ef778318b9d /src/pages/index.astro | |
parent | 70fa9c2033dce305db154103bccb41d8124d42d6 (diff) | |
download | popov.link-4ba339984d239180a526a5ae8ffbb558f1b5642a.tar.xz popov.link-4ba339984d239180a526a5ae8ffbb558f1b5642a.zip |
Updated the main page and page structures
Diffstat (limited to 'src/pages/index.astro')
-rw-r--r-- | src/pages/index.astro | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro index c4f5577..4380bbc 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,18 +1,13 @@ --- import { getCollection } from "astro:content"; +import Element from "../components/PostElement.astro"; import Layout from "../layouts/PageLayout.astro"; const posts = await getCollection("blog"); --- <Layout> - <ul> - { - posts.map((post) => ( - <li> - <a href={`/blog/${post.slug}`}>{post.data.title}</a> - </li> - )) - } - </ul> + <section> + {posts.map((post) => <Element post={post} />)} + </section> </Layout> |