This commit is contained in:
MacRimi 2025-02-18 22:42:57 +01:00
parent 8247163362
commit f253a23efc
2 changed files with 3 additions and 5 deletions

View File

@ -13,7 +13,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
return ( return (
<html lang="en" className="dark"> <html lang="en" className="dark">
<head> <head>
<title>{typeof metadata.title === "string" ? metadata.title : (metadata.title?.default ?? "ProxMenux")}</title> <title>{metadata.title}</title>
<meta name="description" content={metadata.description} /> <meta name="description" content={metadata.description} />
<meta name="application-name" content={metadata.applicationName} /> <meta name="application-name" content={metadata.applicationName} />
<meta name="author" content={metadata.authors?.[0]?.name} /> <meta name="author" content={metadata.authors?.[0]?.name} />

View File

@ -5,10 +5,8 @@ import type { Metadata } from 'next'
const description = "A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks." const description = "A menu-driven script for Proxmox VE management, designed to simplify and streamline the execution of commands and tasks."
export const metadata: Metadata = { export const metadata: Metadata = {
title: {
default: "ProxMenux", title: "ProxMenux",
template: "%s | ProxMenux",
},
description, description,
generator: "Next.js", generator: "Next.js",
applicationName: "ProxMenux", applicationName: "ProxMenux",