🐞 fix: Opengraph title

This commit is contained in:
mbaharip
2023-09-11 07:45:38 +07:00
parent 37becc5aa6
commit 5f3e928f34
+14
View File
@@ -119,6 +119,20 @@ export default function FilePathPage(props: FilePathPageProps) {
<LoaderLayout
seo={{
title: props.mappedEncryptedPath[(props.mappedEncryptedPath.length ?? 1) - 1].name,
openGraph: {
type: "website",
title: props.mappedEncryptedPath[(props.mappedEncryptedPath.length ?? 1) - 1].name,
description: gIndexConfig.siteConfig.siteDescription,
url: process.env.NEXT_PUBLIC_VERCEL_URL,
siteName: gIndexConfig.siteConfig.siteName,
images: [
{
url: `/og.png`,
width: 1200,
height: 630,
},
],
},
}}
>
{isLoadingData ? (