mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Update next seo
This commit is contained in:
@@ -124,6 +124,7 @@ export default function File({ id, fileName }: Props) {
|
||||
title={`Viewing ${fileName.split(".").slice(0, -1).join(".")}`}
|
||||
openGraph={{
|
||||
title: fileName.split(".").slice(0, -1).join("."),
|
||||
description: `Viewing ${fileName.split(".").slice(0, -1).join(".")}`,
|
||||
url: `${process.env.NEXT_PUBLIC_DOMAIN}/file/${encodeURIComponent(
|
||||
id,
|
||||
)}`,
|
||||
|
||||
@@ -110,11 +110,14 @@ export default function Home({ id, folderName, bannerFileId }: Props) {
|
||||
openGraph={{
|
||||
title: folderName,
|
||||
url: `${process.env.NEXT_PUBLIC_DOMAIN}/folder/${id}`,
|
||||
description: `Exploring ${folderName}}`,
|
||||
images: [
|
||||
{
|
||||
url: `${
|
||||
process.env.NEXT_PUBLIC_DOMAIN
|
||||
}/api/og?fileId=${encodeURIComponent(bannerFileId as string)}`,
|
||||
url: bannerFileId
|
||||
? `${
|
||||
process.env.NEXT_PUBLIC_DOMAIN
|
||||
}/api/og?fileId=${encodeURIComponent(bannerFileId as string)}`
|
||||
: `${process.env.NEXT_PUBLIC_DOMAIN}/api/og`,
|
||||
alt: siteConfig.siteName,
|
||||
width: 1200,
|
||||
height: 630,
|
||||
|
||||
+5
-3
@@ -105,9 +105,11 @@ export default function Home({ bannerFileId }: Props) {
|
||||
openGraph={{
|
||||
images: [
|
||||
{
|
||||
url: `${
|
||||
process.env.NEXT_PUBLIC_DOMAIN
|
||||
}/api/og?fileId=${encodeURIComponent(bannerFileId as string)}`,
|
||||
url: bannerFileId
|
||||
? `${
|
||||
process.env.NEXT_PUBLIC_DOMAIN
|
||||
}/api/og?fileId=${encodeURIComponent(bannerFileId as string)}`
|
||||
: `${process.env.NEXT_PUBLIC_DOMAIN}/api/og`,
|
||||
alt: siteConfig.siteName,
|
||||
width: 1200,
|
||||
height: 630,
|
||||
|
||||
Reference in New Issue
Block a user