mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
docs: update schema code in docs for new canonicalURL property
This commit is contained in:
@@ -81,6 +81,7 @@ export const blogSchema = z
|
|||||||
tags: z.array(z.string()).default(["others"]),
|
tags: z.array(z.string()).default(["others"]),
|
||||||
ogImage: z.string().optional(),
|
ogImage: z.string().optional(),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
|
canonicalURL: z.string().optional(),
|
||||||
readingTime: z.string().optional(), // 👈🏻 readingTime frontmatter
|
readingTime: z.string().optional(), // 👈🏻 readingTime frontmatter
|
||||||
})
|
})
|
||||||
.strict();
|
.strict();
|
||||||
|
|||||||
Reference in New Issue
Block a user