17 lines
586 B
TypeScript
17 lines
586 B
TypeScript
import Article from "@/components/wiki/Article";
|
|
import { getAllWikiPages } from "@/lib/wiki";
|
|
|
|
export default async function WikiIndexPage() {
|
|
const allPages = await getAllWikiPages();
|
|
return (
|
|
<Article title="Wiki">
|
|
<div className="flex flex-col gap-2">
|
|
{allPages.map(({ title, path }) => (
|
|
<a key={path} href={`/wiki/${path}`} className="hover:underline">
|
|
{title}
|
|
</a>
|
|
))}
|
|
</div>
|
|
</Article>
|
|
);
|
|
} |