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/layouts/ArticlePage.astro | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'www-2/src/layouts/ArticlePage.astro') diff --git a/www-2/src/layouts/ArticlePage.astro b/www-2/src/layouts/ArticlePage.astro index b6ea5d0..669681e 100644 --- a/www-2/src/layouts/ArticlePage.astro +++ b/www-2/src/layouts/ArticlePage.astro @@ -1,23 +1,17 @@ --- +import type { CollectionEntry } from "astro:content"; + import PageBase from "./PageBase.astro"; import Nav from "../components/Nav.astro"; -interface Props { - id: string; - data: { - title: string; - date: Date; - lastmod?: Date; - }; -} +type Props = Pick, "id" | "data">; const { - id, data: { title, date, lastmod }, } = Astro.props; --- - +