File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { Metadata } from "next" ;
22
33import { globals } from "@/globals" ;
4- import { getDocument } from "@/utils/docs" ;
54import { notFound } from "next/navigation" ;
5+ import { getGeneralDocument } from "@/utils/docs" ;
66
77import MDX from "@/components/mdx" ;
88import Article from "@/components/docs/doc-article" ;
@@ -13,10 +13,7 @@ import Footer from "@/components/footer";
1313
1414export 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
3633const 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" >
You can’t perform that action at this time.
0 commit comments