From de1885fe8fe279c95c2c2b101fad916958dadd4a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 12 Sep 2024 22:10:31 +0000 Subject: Added Pagination component --- src/pages/index.astro | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/pages/index.astro (limited to 'src/pages/index.astro') 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()); ---- - - -
- {posts.map((post) => )} -
-
-- cgit v1.2.3