aboutsummaryrefslogtreecommitdiff
path: root/www-2/src/layouts/ArticlePage.astro
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2026-01-23 23:16:45 +0800
committerYuqian Yang <crupest@crupest.life>2026-01-24 16:38:33 +0800
commit6d39cee75e7ef7c5e06d1a745a32224e11d68c37 (patch)
tree0f2646b569e8af6a2f464eb2755553eda0fe593b /www-2/src/layouts/ArticlePage.astro
parent78e3e234877cb10ca1088df31e831b36fa4a12c0 (diff)
downloadcrupest-astro.tar.gz
crupest-astro.tar.bz2
crupest-astro.zip
HALF WORK!astro
Diffstat (limited to 'www-2/src/layouts/ArticlePage.astro')
-rw-r--r--www-2/src/layouts/ArticlePage.astro14
1 files changed, 4 insertions, 10 deletions
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<CollectionEntry<"articles">, "id" | "data">;
const {
- id,
data: { title, date, lastmod },
} = Astro.props;
---
-<PageBase>
+<PageBase title={title}>
<Nav />
<h1 class="post-title">{title}</h1>
<hr />