From 0f65b996085d8aa76029163817bf7f28215cd5d6 Mon Sep 17 00:00:00 2001 From: "houston[bot]" Date: Thu, 12 Jun 2025 22:12:30 +0200 Subject: Initial commit from Astro --- src/pages/index.astro | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/pages/index.astro (limited to 'src/pages/index.astro') diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..a88712c --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,78 @@ +--- +import Counter from "../components/Counter"; +import StandardLayout from "../layouts/StandardLayout.astro"; +import { getCollection } from "astro:content"; + +// Get the latest 3 blog posts +const latestPosts = await getCollection("blog"); +latestPosts.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); +const featuredPosts = latestPosts.slice(0, 3); +--- + + +
+
+

+ Welcome to Astro +

+

+ A modern framework for building fast, content-focused websites. +

+
+ +
+
+
+ +
+ +
+
-- cgit v1.3.1