Skip to content

Commit 2c2100a

Browse files
committed
refactor: comment out unused generateMetadata function
1 parent ad54d17 commit 2c2100a

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

app/[locale]/layout.tsx

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,53 @@ export function generateStaticParams() {
1414
return locales.all.map((locale) => ({ locale }));
1515
}
1616

17-
export async function generateMetadata() {
18-
return {
19-
metadataBase: new URL(siteConfig.url),
20-
title: {
21-
default: siteConfig.name,
22-
template: `%s | ${siteConfig.name}`,
23-
},
24-
description: siteConfig.description,
25-
keywords: [
26-
'Next.js',
27-
'React',
28-
'Server Components',
29-
'Radix UI',
30-
'OPub',
31-
'Open Publishing',
32-
],
33-
authors: [
34-
{
35-
name: 'CivicDataLab',
36-
url: 'https://civicdatalab.in/',
37-
},
38-
],
39-
creator: 'CivicDataLab',
40-
openGraph: {
41-
type: 'website',
42-
locale: 'en_US',
43-
url: siteConfig.url,
44-
title: siteConfig.name,
45-
description: siteConfig.description,
46-
siteName: siteConfig.name,
47-
images: [`${siteConfig.url}/og.png`],
48-
},
49-
twitter: {
50-
card: 'summary_large_image',
51-
title: siteConfig.name,
52-
description: siteConfig.description,
53-
images: [`${siteConfig.url}/og.png`],
54-
creator: 'CivicDataLab',
55-
},
56-
icons: {
57-
icon: '/favicon.ico',
58-
shortcut: '/favicon-16x16.png',
59-
apple: `${siteConfig.url}/apple-touch-icon.png`,
60-
},
61-
manifest: `${siteConfig.url}/site.webmanifest`,
62-
};
63-
}
17+
// export async function generateMetadata() {
18+
// return {
19+
// metadataBase: new URL(siteConfig.url),
20+
// title: {
21+
// default: siteConfig.name,
22+
// template: `%s | ${siteConfig.name}`,
23+
// },
24+
// description: siteConfig.description,
25+
// keywords: [
26+
// 'Next.js',
27+
// 'React',
28+
// 'Server Components',
29+
// 'Radix UI',
30+
// 'OPub',
31+
// 'Open Publishing',
32+
// ],
33+
// authors: [
34+
// {
35+
// name: 'CivicDataLab',
36+
// url: 'https://civicdatalab.in/',
37+
// },
38+
// ],
39+
// creator: 'CivicDataLab',
40+
// openGraph: {
41+
// type: 'website',
42+
// locale: 'en_US',
43+
// url: siteConfig.url,
44+
// title: siteConfig.name,
45+
// description: siteConfig.description,
46+
// siteName: siteConfig.name,
47+
// images: [`${siteConfig.url}/og.png`],
48+
// },
49+
// twitter: {
50+
// card: 'summary_large_image',
51+
// title: siteConfig.name,
52+
// description: siteConfig.description,
53+
// images: [`${siteConfig.url}/og.png`],
54+
// creator: 'CivicDataLab',
55+
// },
56+
// icons: {
57+
// icon: '/favicon.ico',
58+
// shortcut: '/favicon-16x16.png',
59+
// apple: `${siteConfig.url}/apple-touch-icon.png`,
60+
// },
61+
// manifest: `${siteConfig.url}/site.webmanifest`,
62+
// };
63+
// }
6464

6565
export default async function LocaleLayout({
6666
children,

0 commit comments

Comments
 (0)