More AI
This commit is contained in:
parent
f3fc893675
commit
bb5b4c4cf3
43 changed files with 585 additions and 524 deletions
|
|
@ -5,16 +5,6 @@ import { z } from 'astro/zod';
|
|||
|
||||
const linkSchema = z.object({
|
||||
label: z.string(),
|
||||
type: z.enum([
|
||||
'source',
|
||||
'demo',
|
||||
'package',
|
||||
'paper',
|
||||
'thesis',
|
||||
'video',
|
||||
'site',
|
||||
'contact',
|
||||
]),
|
||||
url: z.string(),
|
||||
download: z.boolean().optional(),
|
||||
});
|
||||
|
|
@ -37,7 +27,6 @@ const mediaSchema = ({ image }: SchemaContext) =>
|
|||
decorative: z.boolean().optional(),
|
||||
caption: z.string().optional(),
|
||||
transcript: z.string().optional(),
|
||||
role: z.enum(['evidence', 'og', 'inline']).default('evidence'),
|
||||
})
|
||||
.refine((item) => item.decorative || (Boolean(item.alt) && Boolean(item.caption)), {
|
||||
message: 'Meaningful media needs both alt text and a caption.',
|
||||
|
|
@ -89,7 +78,6 @@ const projects = defineCollection({
|
|||
thumbnail: thumbnailSchema({ image }),
|
||||
period: z.string(),
|
||||
sortDate: z.coerce.date(),
|
||||
status: z.string().optional(),
|
||||
technologies: z.array(z.string()).default([]),
|
||||
selected: z.boolean().default(false),
|
||||
essay: reference('posts').optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue