Skip to content

Commit af5809c

Browse files
authored
Update metadata inside layout.tsx for better SEO (#3570)
1 parent 7727ed2 commit af5809c

File tree

1 file changed

+57
-12
lines changed

1 file changed

+57
-12
lines changed

frontend/src/app/layout.tsx

Lines changed: 57 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,88 @@ import { ThemeProvider } from "@/components/theme-provider";
55
import { Toaster } from "@/components/ui/sonner";
66
import { analytics, basePath } from "@/config/siteConfig";
77
import "@/styles/globals.css";
8+
import type { Metadata } from "next";
89
import { Inter } from "next/font/google";
910
import { NuqsAdapter } from "nuqs/adapters/next/app";
1011
import React from "react";
1112

1213
const inter = Inter({ subsets: ["latin"] });
1314

14-
export const metadata = {
15+
export const metadata : Metadata = {
1516
title: "Proxmox VE Helper-Scripts",
16-
generator: "Next.js",
17+
description:
18+
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
1719
applicationName: "Proxmox VE Helper-Scripts",
20+
generator: "Next.js",
1821
referrer: "origin-when-cross-origin",
19-
keywords: ["Proxmox VE", "Helper-Scripts", "tteck", "helper", "scripts", "proxmox", "VE"],
20-
authors: { name: "Bram Suurd" },
22+
keywords: [
23+
"Proxmox VE",
24+
"Helper-Scripts",
25+
"tteck",
26+
"helper",
27+
"scripts",
28+
"proxmox",
29+
"VE",
30+
"virtualization",
31+
"containers",
32+
"LXC",
33+
"VM",
34+
],
35+
authors: [
36+
{ name: "Bram Suurd", url: "https://github.com/BramSuurdje" },
37+
{ name: "Community Scripts", url: "https://github.com/Community-Scripts" },
38+
],
2139
creator: "Bram Suurd",
22-
publisher: "Bram Suurd",
23-
description:
24-
"A Front-end for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 200+ scripts to help you manage your Proxmox VE environment.",
25-
favicon: "/app/favicon.ico",
40+
publisher: "Community Scripts",
41+
metadataBase: new URL(`https://community-scripts.github.io/${basePath}/`),
42+
alternates: {
43+
canonical: `https://community-scripts.github.io/${basePath}/`,
44+
},
45+
icons: {
46+
icon: "/favicon.ico",
47+
apple: "/apple-touch-icon.png",
48+
},
49+
viewport: {
50+
width: "device-width",
51+
initialScale: 1,
52+
maximumScale: 5,
53+
},
2654
formatDetection: {
2755
email: false,
2856
address: false,
2957
telephone: false,
3058
},
31-
metadataBase: new URL(`https://community-scripts.github.io/${basePath}/`),
3259
openGraph: {
3360
title: "Proxmox VE Helper-Scripts",
3461
description:
35-
"A Front-end for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 200+ scripts to help you manage your Proxmox VE environment.",
36-
url: "/defaultimg.png",
62+
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
63+
url: `https://community-scripts.github.io/${basePath}/`,
64+
siteName: "Proxmox VE Helper-Scripts",
3765
images: [
3866
{
3967
url: `https://community-scripts.github.io/${basePath}/defaultimg.png`,
68+
width: 1200,
69+
height: 630,
70+
alt: "Proxmox VE Helper-Scripts",
4071
},
4172
],
4273
locale: "en_US",
4374
type: "website",
4475
},
76+
twitter: {
77+
card: "summary_large_image",
78+
title: "Proxmox VE Helper-Scripts",
79+
creator: "@BramSuurdje",
80+
description:
81+
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
82+
images: [`https://community-scripts.github.io/${basePath}/defaultimg.png`],
83+
},
84+
manifest: "/manifest.webmanifest",
85+
appleWebApp: {
86+
capable: true,
87+
statusBarStyle: "default",
88+
title: "Proxmox VE Helper-Scripts",
89+
},
4590
};
4691

4792
export default function RootLayout({
@@ -53,7 +98,7 @@ export default function RootLayout({
5398
<html lang="en" suppressHydrationWarning>
5499
<head>
55100
<script defer src={`https://${analytics.url}/script.js`} data-website-id={analytics.token}></script>
56-
<link rel="canonical" href={metadata.metadataBase.href} />
101+
<link rel="canonical" href={metadata.metadataBase?.href} />
57102
<link rel="manifest" href="manifest.webmanifest" />
58103
<link rel="preconnect" href="https://api.github.com" />
59104
</head>

0 commit comments

Comments
 (0)