mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Refactor layout to utilize basePath for metadata base URL and image links for better configurability
This commit is contained in:
parent
e67b1c5b11
commit
49527dde19
@ -6,7 +6,7 @@ import "@/styles/globals.css";
|
|||||||
import { Inter } from "next/font/google";
|
import { Inter } from "next/font/google";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
import { NuqsAdapter } from "nuqs/adapters/next/app";
|
||||||
import { analytics } from "@/config/siteConfig";
|
import { analytics, basePath } from "@/config/siteConfig";
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
const inter = Inter({ subsets: ["latin"] });
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ export const metadata = {
|
|||||||
address: false,
|
address: false,
|
||||||
telephone: false,
|
telephone: false,
|
||||||
},
|
},
|
||||||
metadataBase: new URL("https://community-scripts.github.io/Proxmox/"),
|
metadataBase: new URL(`https://community-scripts.github.io/${basePath}/`),
|
||||||
openGraph: {
|
openGraph: {
|
||||||
title: "Proxmox VE Helper-Scripts",
|
title: "Proxmox VE Helper-Scripts",
|
||||||
description:
|
description:
|
||||||
@ -43,7 +43,7 @@ export const metadata = {
|
|||||||
url: "/defaultimg.png",
|
url: "/defaultimg.png",
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
url: "https://community-scripts.github.io/Proxmox/defaultimg.png",
|
url: `https://community-scripts.github.io/${basePath}/defaultimg.png`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
locale: "en_US",
|
locale: "en_US",
|
||||||
|
Loading…
Reference in New Issue
Block a user