Skip to content

Commit cf695d8

Browse files
committed
fix: json-ld
1 parent d6bbe62 commit cf695d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/(app)/notes/[nid]/page.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import Gisus from '@/components/modules/comment/Giscus';
1919
import { getUserLocale } from '@/lib/getLocale';
2020
import localeValues from '@/locale';
2121
import { Signature } from '~/signature';
22+
import { seo } from '~/seo';
2223

2324
const { postDataMap } = await getPostData();
2425

@@ -86,9 +87,11 @@ export default async function Page({ params }: { params: Record<string, any> })
8687
'@type': 'Person',
8788
name,
8889
})),
90+
image: postData.coverImage,
91+
url: `${seo.url}notes/${nid}`,
8992
mainEntityOfPage: {
9093
'@type': 'WebPage',
91-
'@id': `https://your-domain.com/notes/${nid}`,
94+
'@id': `${seo.url}notes/${nid}`,
9295
},
9396
}),
9497
}}

0 commit comments

Comments
 (0)