aboutsummaryrefslogtreecommitdiff
path: root/www-2/src/layouts/ListPage.astro
diff options
context:
space:
mode:
Diffstat (limited to 'www-2/src/layouts/ListPage.astro')
-rw-r--r--www-2/src/layouts/ListPage.astro23
1 files changed, 23 insertions, 0 deletions
diff --git a/www-2/src/layouts/ListPage.astro b/www-2/src/layouts/ListPage.astro
new file mode 100644
index 0000000..708df26
--- /dev/null
+++ b/www-2/src/layouts/ListPage.astro
@@ -0,0 +1,23 @@
+---
+import PageBase from "./PageBase.astro";
+import Nav from "../components/Nav.astro";
+import ArticlePreviewList, {
+ type Props as ArticlePreviewListProps,
+} from "../components/ArticlePreviewList.astro";
+
+interface Props {
+ title: string;
+ articles: ArticlePreviewListProps["articles"];
+}
+
+const { title, articles } = Astro.props;
+---
+
+<PageBase title={title}>
+ <Nav />
+ <h1>{title}</h1>
+ <hr />
+ <ArticlePreviewList articles={articles} headerElement="h2" />
+</PageBase>
+
+<style></style>