This commit is contained in:
MacRimi 2025-02-18 23:53:14 +01:00
parent 4dd72ae488
commit 6799d0a95e
2 changed files with 18 additions and 14 deletions

View File

@ -7,8 +7,6 @@ import type React from "react"
const inter = Inter({ subsets: ["latin"] }) const inter = Inter({ subsets: ["latin"] })
export const metadata = { export const metadata = {
title: "ProxMenux", title: "ProxMenux",
generator: "Next.js", generator: "Next.js",
@ -30,13 +28,14 @@ export const metadata = {
title: "ProxMenux", title: "ProxMenux",
description: description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.", "A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
url: "/main.png", url: "https://macrimi.github.io/ProxMenux/",
siteName: "ProxMenux", siteName: "ProxMenux",
images: [ images: [
{ {
url: `https://raw.githubusercontent.com/MacRimi/ProxMenux/main/web/public/main.png`, url: "https://macrimi.github.io/ProxMenux/main.png",
width: 1363, width: 1363,
height: 735, height: 735,
alt: "ProxMenux",
}, },
], ],
locale: "en_US", locale: "en_US",
@ -47,14 +46,14 @@ export const metadata = {
title: "ProxMenux", title: "ProxMenux",
description: description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.", "A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
images: [`https://raw.githubusercontent.com/MacRimi/ProxMenux/main/web/public/main.png`], images: ["https://macrimi.github.io/ProxMenux/main.png"],
}, },
icons: { icons: {
icon: [ icon: [
{ url: `https://raw.githubusercontent.com/MacRimi/ProxMenux/main/web/public/favicon.ico`, sizes: "any" }, { url: "https://macrimi.github.io/ProxMenux/favicon.ico", sizes: "any" },
{ url: `https://raw.githubusercontent.com/MacRimi/ProxMenux/main/web/public/icon.svg`, type: "image/svg+xml" }, { url: "https://macrimi.github.io/ProxMenux/icon.svg", type: "image/svg+xml" },
], ],
apple: [{ url: `https://raw.githubusercontent.com/MacRimi/ProxMenux/main/web/public/apple-touch-icon.png`, sizes: "180x180" } as const], apple: [{ url: "https://macrimi.github.io/ProxMenux/apple-touch-icon.png", sizes: "180x180" } as const],
}, },
} }
@ -62,7 +61,18 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return ( return (
<html lang="en" className="dark"> <html lang="en" className="dark">
<head> <head>
<meta name="description" content={metadata.description} />
<meta property="og:title" content={metadata.openGraph?.title} />
<meta property="og:description" content={metadata.openGraph?.description} />
<meta property="og:image" content={metadata.openGraph?.images?.[0]?.url} />
<meta property="og:url" content={metadata.openGraph?.url} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content={metadata.twitter?.title} />
<meta name="twitter:description" content={metadata.twitter?.description} />
<meta name="twitter:image" content={metadata.twitter?.images?.[0]} />
<link rel="canonical" href={metadata.metadataBase.href} /> <link rel="canonical" href={metadata.metadataBase.href} />
{/* Favicon y Apple Icons */}
{metadata.icons.icon.map((icon, index) => ( {metadata.icons.icon.map((icon, index) => (
<link key={index} rel="icon" type={icon.type} sizes={icon.sizes} href={icon.url} /> <link key={index} rel="icon" type={icon.type} sizes={icon.sizes} href={icon.url} />
))} ))}

View File

@ -1,14 +1,8 @@
import type { Metadata } from "next"
import Hero from "@/components/hero" import Hero from "@/components/hero"
import Resources from "@/components/resources" import Resources from "@/components/resources"
import SupportProject from "@/components/support-project" import SupportProject from "@/components/support-project"
import Footer from "@/components/footer" import Footer from "@/components/footer"
export const metadata: Metadata = {
title: "ProxMenux",
description:
"A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks.",
}
export default function Home() { export default function Home() {
return ( return (