feat(library): add multilingual author archives and linked bylines
This commit is contained in:
23 files changed
+2098
-115
No files matched your search
@@ -59,8 +59,9 @@ const authors = defineCollection({
|
||||
generateId: ({ entry }) => entry.replace(/\.(md|mdx)$/, '')
|
||||
}),
|
||||
schema: z.object({
|
||||
name: z.string(),
|
||||
slug: z.string(),
|
||||
name: z.string().refine((value) => value.trim().length > 0, 'Author name must not be blank'),
|
||||
displayName: z.string().refine((value) => value.trim().length > 0, 'Author displayName must not be blank').optional(),
|
||||
slug: z.string().regex(/^[\p{L}\p{N}]+(?:[-_][\p{L}\p{N}]+)*$/u, 'Author slug must be a safe single path segment'),
|
||||
description: z.string().optional(),
|
||||
avatar: z.string().optional(),
|
||||
lang: language,
|
||||
|
||||
Reference in new issue
Block a user