Expand DNDT, add TrackInline, more tracks

This commit is contained in:
2025-08-28 16:03:29 +09:30
parent ba8eec5879
commit ca15fa782d
19 changed files with 179 additions and 24 deletions

View File

@@ -68,23 +68,30 @@ const tracks = defineCollection({
subtitle: z.string().optional(),
extra: z.string().optional(),
artist: z.string().optional().default("Nathan Cummins"),
artwork: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
artwork: z
.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
.optional()
}),
autoQueue: z
.object({
order: z.number()
})
.optional(),
card: z.object({
image: z.object({
src: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image()),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
card: z
.object({
image: z.object({
src: z.preprocess(
(val) => `/src/assets/img/tracks/${val}`,
image()
),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
})
})
})
.optional()
})
});