Feat/wiki #40
No files matched your search
+10
-3
@@ -1,11 +1,18 @@
|
|||||||
import Article from "@/components/wiki/Article";
|
import Article from "@/components/wiki/Article";
|
||||||
import { getAllWikiPages } from "@/lib/wiki";
|
import { getAllWikiPages } from "@/lib/wiki";
|
||||||
|
|
||||||
export default function WikiIndexPage() {
|
export default async function WikiIndexPage() {
|
||||||
const allPages = getAllWikiPages();
|
const allPages = await getAllWikiPages();
|
||||||
return (
|
return (
|
||||||
<Article title="Wiki">
|
<Article title="Wiki">
|
||||||
<p>hi</p>
|
{allPages.map(({ title, path }) => (
|
||||||
|
<>
|
||||||
|
<a key={path} href={`/wiki/${path}`}>
|
||||||
|
{title}
|
||||||
|
</a>
|
||||||
|
<br />
|
||||||
|
</>
|
||||||
|
))}
|
||||||
</Article>
|
</Article>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
title: Projekt Starten
|
title: Test Page
|
||||||
updatedAt: "2026-08-04"
|
updatedAt: "2026-08-04"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user