This commit is contained in:
robin committed 2026-08-25 12:35:28 +02:00
1 parent 675c046029
commit 9610884703
2 files changed
+11 -4

No files matched your search

+10 -3
View File
@@ -1,11 +1,18 @@
import Article from "@/components/wiki/Article";
import { getAllWikiPages } from "@/lib/wiki";
export default function WikiIndexPage() {
const allPages = getAllWikiPages();
export default async function WikiIndexPage() {
const allPages = await getAllWikiPages();
return (
<Article title="Wiki">
<p>hi</p>
{allPages.map(({ title, path }) => (
<>
<a key={path} href={`/wiki/${path}`}>
{title}
</a>
<br />
</>
))}
</Article>
);
}