From 14469be33b7a67ca154343e72726771a1a105ab4 Mon Sep 17 00:00:00 2001 From: ridhozhr10 Date: Wed, 29 May 2024 14:13:49 +0700 Subject: [PATCH] fix: opengraph base metadata title --- src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index 36e78ca..98f288c 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,7 +14,7 @@ export const baseMetadata = (path: string, titlePrefix?: string): Metadata => { title: `${titlePrefix || ""}${titlePrefix ? " :: " : ""}${title}`, description, openGraph: { - title: `${titlePrefix}${titlePrefix && " :: "}${title}`, + title: `${titlePrefix || ""}${titlePrefix ? " :: " : ""}${title}`, url: `${baseURL}${path ? "/" : ""}${path}`, description: description, images: ["/img/smug-ico.png"],