Skip to content

Commit 9e4dfaa

Browse files
committed
fix: replace getDocument with getGeneralDocument for consistency in home page data
1 parent 88282d1 commit 9e4dfaa

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

apps/website/src/app/page.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Metadata } from "next";
22

33
import { globals } from "@/globals";
4-
import { getDocument } from "@/utils/docs";
54
import { notFound } from "next/navigation";
5+
import { getGeneralDocument } from "@/utils/docs";
66

77
import MDX from "@/components/mdx";
88
import Article from "@/components/docs/doc-article";
@@ -13,10 +13,7 @@ import Footer from "@/components/footer";
1313

1414
export async function generateMetadata(): Promise<Metadata> {
1515
const websiteUrl = "https://code-blocks.pheralb.dev";
16-
const data = getDocument({
17-
folder: "general",
18-
document: "home",
19-
});
16+
const data = getGeneralDocument("home");
2017
return {
2118
openGraph: {
2219
type: "website",
@@ -34,10 +31,7 @@ export async function generateMetadata(): Promise<Metadata> {
3431
}
3532

3633
const Home = () => {
37-
const document = getDocument({
38-
folder: "general",
39-
document: "home",
40-
});
34+
const document = getGeneralDocument("home");
4135
if (!document) return notFound();
4236
return (
4337
<main className="pb-4">

0 commit comments

Comments
 (0)