Merge socials into contact resource to eliminate duplication

Co-authored-by: ArthurDanjou <29738535+ArthurDanjou@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-14 22:14:59 +00:00
parent cbc93091e5
commit b7f6eaafc4
5 changed files with 23 additions and 104 deletions

View File

@@ -80,7 +80,8 @@ export default defineContentConfig({
body: z.array(z.object({
name: z.string(),
icon: z.string().optional(),
value: z.string().url()
value: z.string().url(),
username: z.string().optional()
}))
})
}),
@@ -136,33 +137,6 @@ export default defineContentConfig({
}),
achievements: z.array(z.string())
})
}),
socials: defineCollection({
type: 'page',
source: 'socials.json',
schema: z.object({
github: z.object({
username: z.string(),
url: z.string().url(),
stats: z.object({
note: z.string()
})
}),
linkedin: z.object({
url: z.string().url()
}),
twitter: z.object({
url: z.string().url()
}),
discord: z.object({
url: z.string().url()
}),
website: z.object({
personal: z.string().url(),
mcp: z.string().url(),
status: z.string().url()
})
})
})
}
})