aboutsummaryrefslogtreecommitdiff
path: root/src/pages/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/index.astro')
-rw-r--r--src/pages/index.astro14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/pages/index.astro b/src/pages/index.astro
deleted file mode 100644
index 6575ca6..0000000
--- a/src/pages/index.astro
+++ /dev/null
@@ -1,14 +0,0 @@
----
-import { getCollection } from "astro:content";
-import Element from "../components/PostElement.astro";
-import Layout from "../layouts/BaseLayout.astro";
-
-const posts = await getCollection("blog");
-posts.sort((a, b) => b.data.pubDate.getTime() - a.data.pubDate.getTime());
----
-
-<Layout>
- <section>
- {posts.map((post) => <Element post={post} />)}
- </section>
-</Layout>