mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-07 17:44:59 -05:00
feat: add metadata theme-color to black
This commit is contained in:
parent
700d1caadc
commit
b74ef3407c
@ -20,7 +20,7 @@ export const generateMetadata = ({
|
|||||||
(post) => post._raw.flattenedPath === params.slug.join("/")
|
(post) => post._raw.flattenedPath === params.slug.join("/")
|
||||||
);
|
);
|
||||||
if (!post) notFound();
|
if (!post) notFound();
|
||||||
return { title: post.title + " | MHSF Docs" };
|
return { title: post.title + " | MHSF Docs", themeColor: "#000000" };
|
||||||
};
|
};
|
||||||
|
|
||||||
const PostLayout = ({ params }: { params: { slug: string[] } }) => {
|
const PostLayout = ({ params }: { params: { slug: string[] } }) => {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ import ClientFadeIn from "@/components/ClientFadeIn";
|
|||||||
import { BrandingGenericIcon } from "@/components/Icon";
|
import { BrandingGenericIcon } from "@/components/Icon";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
|
||||||
export const metadata = {
|
export const extraMetadata = {
|
||||||
twitter: {
|
twitter: {
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
@ -31,6 +31,7 @@ export const metadata = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
themeColor: "#000000",
|
||||||
openGraph: {
|
openGraph: {
|
||||||
images: [
|
images: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,6 +7,21 @@ export const metadata: Metadata = {
|
|||||||
process.env.NEXT_PUBLIC_VERCEL_ENV != undefined
|
process.env.NEXT_PUBLIC_VERCEL_ENV != undefined
|
||||||
? `currently running in ${process.env.NEXT_PUBLIC_VERCEL_ENV} | commit (${(process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA as string).substring(0, 7)}}) "${process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE}" by ${process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_NAME}`
|
? `currently running in ${process.env.NEXT_PUBLIC_VERCEL_ENV} | commit (${(process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA as string).substring(0, 7)}}) "${process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE}" by ${process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_NAME}`
|
||||||
: "currently running in dev",
|
: "currently running in dev",
|
||||||
|
twitter: {
|
||||||
|
images: [
|
||||||
|
{
|
||||||
|
url: "/public/imgs/icon-cf.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
themeColor: "#000000",
|
||||||
|
openGraph: {
|
||||||
|
images: [
|
||||||
|
{
|
||||||
|
url: "/public/imgs/icon-cf.png",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
|
|||||||
@ -23,6 +23,7 @@ export async function generateMetadata(
|
|||||||
).json();
|
).json();
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
themeColor: "#000000",
|
||||||
title:
|
title:
|
||||||
json.server == null
|
json.server == null
|
||||||
? "Server doesn't exist | MHSF"
|
? "Server doesn't exist | MHSF"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user