From 6d39cee75e7ef7c5e06d1a745a32224e11d68c37 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 23 Jan 2026 23:16:45 +0800 Subject: HALF WORK! --- www-2/src/pages/posts.astro | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 www-2/src/pages/posts.astro (limited to 'www-2/src/pages/posts.astro') diff --git a/www-2/src/pages/posts.astro b/www-2/src/pages/posts.astro new file mode 100644 index 0000000..b4c6189 --- /dev/null +++ b/www-2/src/pages/posts.astro @@ -0,0 +1,11 @@ +--- +import { getCollection } from "astro:content"; + +import ListPage from "../layouts/ListPage.astro"; + +const posts = await getCollection("articles", ({ id }) => + id.startsWith("posts/"), +); +--- + + -- cgit v1.2.3