File tree Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Expand file tree Collapse file tree 2 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import Image from "next/image" ;
3
3
import Link from "next/link" ;
4
- import { DynamicPagePropsType } from "@/app/types" ;
5
- import { Metadata } from "next/types" ;
6
- import { removeDashAndCapitalize } from "@/utils/utils" ;
7
-
8
- export async function generateMetadata ( { params } : DynamicPagePropsType ) : Promise < Metadata > {
9
- const slug = ( await params ) . slug
10
-
11
- return {
12
- title : removeDashAndCapitalize ( slug ) ,
13
- description : ""
14
- } ;
15
- }
16
4
17
5
const Layout = ( {
18
6
children,
Original file line number Diff line number Diff line change @@ -4,9 +4,20 @@ import Image from "next/image";
4
4
import { twMerge } from "tailwind-merge" ;
5
5
import TeamCard from "../components/TeamCard" ;
6
6
import { DynamicPagePropsType } from "@/app/types" ;
7
+ import { Metadata } from "next/types" ;
8
+ import { removeDashAndCapitalize } from "@/utils/utils" ;
7
9
8
10
export const dynamicParams = false ;
9
11
12
+ export async function generateMetadata ( { params } : DynamicPagePropsType ) : Promise < Metadata > {
13
+ const slug = ( await params ) . slug
14
+
15
+ return {
16
+ title : removeDashAndCapitalize ( slug ) ,
17
+ description : ""
18
+ } ;
19
+ }
20
+
10
21
export async function generateStaticParams ( ) {
11
22
return Object . keys ( aboutPageData ) . map ( ( pageName ) => ( {
12
23
slug : pageName ,
You can’t perform that action at this time.
0 commit comments