diff options
Diffstat (limited to 'src/utils/schemas/blogSchema.ts')
| -rw-r--r-- | src/utils/schemas/blogSchema.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/schemas/blogSchema.ts b/src/utils/schemas/blogSchema.ts index 77f4632..196f037 100644 --- a/src/utils/schemas/blogSchema.ts +++ b/src/utils/schemas/blogSchema.ts @@ -19,7 +19,7 @@ export default ({ siteUrl, title, posts }: BlogSchemaParams): WithContext<Collec "itemListElement": posts.map((post, index) => ({ "@type": "ListItem", "position": index + 1, - "url": new URL(`/blog/${post.slug}`, siteUrl).toString(), + "url": new URL(`/blog/${post.id}`, siteUrl).toString(), "name": post.data.title, })), }, |
