Skip to content

Commit 357d851

Browse files
committed
feat(website): add navigation links to home page layout
1 parent f6f1646 commit 357d851

File tree

1 file changed

+53
-2
lines changed

1 file changed

+53
-2
lines changed

apps/website/app/(home)/layout.tsx

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,59 @@
1+
import type { LinkItemType } from "fumadocs-ui/layouts/links";
12
import type { ReactNode } from "react";
2-
import { baseOptions } from "#/app/layout.config";
33

4+
import { baseOptions } from "#/app/layout.config";
45
import { HomeLayout } from "fumadocs-ui/layouts/home";
56

7+
const links = [
8+
{
9+
active: "nested-url",
10+
text: "Getting Started",
11+
url: "/docs/getting-started",
12+
},
13+
{
14+
active: "nested-url",
15+
text: "Rules",
16+
url: "/docs/rules",
17+
},
18+
{
19+
active: "nested-url",
20+
text: "Presets",
21+
url: "/docs/presets",
22+
},
23+
{
24+
active: "nested-url",
25+
text: "Contributing",
26+
url: "/docs/contributing",
27+
},
28+
{
29+
active: "nested-url",
30+
text: "Community",
31+
url: "/docs/community",
32+
},
33+
{
34+
active: "nested-url",
35+
text: "Changelog",
36+
url: "/docs/changelog",
37+
},
38+
{
39+
active: "nested-url",
40+
text: "Roadmap",
41+
url: "/docs/roadmap",
42+
},
43+
{
44+
active: "nested-url",
45+
text: "FAQ",
46+
url: "/FAQ",
47+
},
48+
] as const satisfies LinkItemType[];
49+
650
export default function Layout({ children }: { children: ReactNode }) {
7-
return <HomeLayout {...baseOptions}>{children}</HomeLayout>;
51+
return (
52+
<HomeLayout
53+
{...baseOptions}
54+
links={links}
55+
>
56+
{children}
57+
</HomeLayout>
58+
);
859
}

0 commit comments

Comments
 (0)