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/index.astro | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'www-2/src/pages/index.astro') diff --git a/www-2/src/pages/index.astro b/www-2/src/pages/index.astro index 4007037..c8687c4 100644 --- a/www-2/src/pages/index.astro +++ b/www-2/src/pages/index.astro @@ -1,16 +1,16 @@ --- -import { getCollection, render } from "astro:content"; +import { getCollection } from "astro:content"; import PageBase from "../layouts/PageBase.astro"; import Friend from "../components/Friend.astro"; -import ArticlePreview from "../components/ArticlePreview.astro"; +import ArticlePreviewList from "../components/ArticlePreviewList.astro"; const posts = ( - await getCollection("blogs", ({ id }) => id.startsWith("posts/")) + await getCollection("articles", ({ id }) => id.startsWith("posts/")) ).slice(0, 3); --- - + My avatar

Hello! This is crupest !


@@ -38,16 +38,7 @@ const posts = (

Recent Posts (all)

- { - posts.map((post) => ( - - )) - } +

-- cgit v1.2.3