feat(seo): add localized route metadata
This commit is contained in:
@@ -2,6 +2,20 @@ import { ContentContent } from "@/components/content-content";
|
||||
import { YOUTUBE_VIDEO_LINKS } from "@/data/youtube-videos";
|
||||
import { X_JAVASCRIPT_ANATOMY_VIDEOS } from "@/data/x-videos";
|
||||
import { getPdfNotes } from "@/lib/content-page";
|
||||
import { getStaticPageMetadata } from "@/lib/seo";
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ locale: string }>;
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
return getStaticPageMetadata({
|
||||
locale,
|
||||
page: "content",
|
||||
path: "/content",
|
||||
});
|
||||
}
|
||||
|
||||
export default async function ContentPage() {
|
||||
const pdfFiles = await getPdfNotes();
|
||||
|
||||
Reference in New Issue
Block a user