mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-04-20 14:18:09 +00:00
Update metadata inside layout.tsx for better SEO (#3570)
This commit is contained in:
parent
7727ed2cbb
commit
af5809c888
@ -5,43 +5,88 @@ import { ThemeProvider } from "@/components/theme-provider";
|
|||||||
import { Toaster } from "@/components/ui/sonner";
|
import { Toaster } from "@/components/ui/sonner";
|
||||||
import { analytics, basePath } from "@/config/siteConfig";
|
import { analytics, basePath } from "@/config/siteConfig";
|
||||||
import "@/styles/globals.css";
|
import "@/styles/globals.css";
|
||||||
|
import type { Metadata } from "next";
|
||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata : Metadata = {
|
||||||
title: "Proxmox VE Helper-Scripts",
|
title: "Proxmox VE Helper-Scripts",
|
||||||
generator: "Next.js",
|
|
||||||
applicationName: "Proxmox VE Helper-Scripts",
|
|
||||||
referrer: "origin-when-cross-origin",
|
|
||||||
keywords: ["Proxmox VE", "Helper-Scripts", "tteck", "helper", "scripts", "proxmox", "VE"],
|
|
||||||
authors: { name: "Bram Suurd" },
|
|
||||||
creator: "Bram Suurd",
|
|
||||||
publisher: "Bram Suurd",
|
|
||||||
description:
|
description:
|
||||||
"A Front-end for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 200+ scripts to help you manage your Proxmox VE environment.",
|
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
|
||||||
favicon: "/app/favicon.ico",
|
applicationName: "Proxmox VE Helper-Scripts",
|
||||||
|
generator: "Next.js",
|
||||||
|
referrer: "origin-when-cross-origin",
|
||||||
|
keywords: [
|
||||||
|
"Proxmox VE",
|
||||||
|
"Helper-Scripts",
|
||||||
|
"tteck",
|
||||||
|
"helper",
|
||||||
|
"scripts",
|
||||||
|
"proxmox",
|
||||||
|
"VE",
|
||||||
|
"virtualization",
|
||||||
|
"containers",
|
||||||
|
"LXC",
|
||||||
|
"VM",
|
||||||
|
],
|
||||||
|
authors: [
|
||||||
|
{ name: "Bram Suurd", url: "https://github.com/BramSuurdje" },
|
||||||
|
{ name: "Community Scripts", url: "https://github.com/Community-Scripts" },
|
||||||
|
],
|
||||||
|
creator: "Bram Suurd",
|
||||||
|
publisher: "Community Scripts",
|
||||||
|
metadataBase: new URL(`https://community-scripts.github.io/${basePath}/`),
|
||||||
|
alternates: {
|
||||||
|
canonical: `https://community-scripts.github.io/${basePath}/`,
|
||||||
|
},
|
||||||
|
icons: {
|
||||||
|
icon: "/favicon.ico",
|
||||||
|
apple: "/apple-touch-icon.png",
|
||||||
|
},
|
||||||
|
viewport: {
|
||||||
|
width: "device-width",
|
||||||
|
initialScale: 1,
|
||||||
|
maximumScale: 5,
|
||||||
|
},
|
||||||
formatDetection: {
|
formatDetection: {
|
||||||
email: false,
|
email: false,
|
||||||
address: false,
|
address: false,
|
||||||
telephone: false,
|
telephone: false,
|
||||||
},
|
},
|
||||||
metadataBase: new URL(`https://community-scripts.github.io/${basePath}/`),
|
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Proxmox VE Helper-Scripts",
|
title: "Proxmox VE Helper-Scripts",
|
||||||
description:
|
description:
|
||||||
"A Front-end for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 200+ scripts to help you manage your Proxmox VE environment.",
|
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
|
||||||
url: "/defaultimg.png",
|
url: `https://community-scripts.github.io/${basePath}/`,
|
||||||
|
siteName: "Proxmox VE Helper-Scripts",
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
url: `https://community-scripts.github.io/${basePath}/defaultimg.png`,
|
url: `https://community-scripts.github.io/${basePath}/defaultimg.png`,
|
||||||
|
width: 1200,
|
||||||
|
height: 630,
|
||||||
|
alt: "Proxmox VE Helper-Scripts",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
locale: "en_US",
|
locale: "en_US",
|
||||||
type: "website",
|
type: "website",
|
||||||
},
|
},
|
||||||
|
twitter: {
|
||||||
|
card: "summary_large_image",
|
||||||
|
title: "Proxmox VE Helper-Scripts",
|
||||||
|
creator: "@BramSuurdje",
|
||||||
|
description:
|
||||||
|
"The official website for the Proxmox VE Helper-Scripts (Community) Repository. Featuring over 300+ scripts to help you manage your Proxmox VE environment.",
|
||||||
|
images: [`https://community-scripts.github.io/${basePath}/defaultimg.png`],
|
||||||
|
},
|
||||||
|
manifest: "/manifest.webmanifest",
|
||||||
|
appleWebApp: {
|
||||||
|
capable: true,
|
||||||
|
statusBarStyle: "default",
|
||||||
|
title: "Proxmox VE Helper-Scripts",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
@ -53,7 +98,7 @@ export default function RootLayout({
|
|||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<head>
|
<head>
|
||||||
<script defer src={`https://${analytics.url}/script.js`} data-website-id={analytics.token}></script>
|
<script defer src={`https://${analytics.url}/script.js`} data-website-id={analytics.token}></script>
|
||||||
<link rel="canonical" href={metadata.metadataBase.href} />
|
<link rel="canonical" href={metadata.metadataBase?.href} />
|
||||||
<link rel="manifest" href="manifest.webmanifest" />
|
<link rel="manifest" href="manifest.webmanifest" />
|
||||||
<link rel="preconnect" href="https://api.github.com" />
|
<link rel="preconnect" href="https://api.github.com" />
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user