mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 12:05:28 +00:00
19 lines
432 B
TypeScript
19 lines
432 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
export const sketchnotes = defineCollection({
|
|
schema: z.object({
|
|
title: z.string(),
|
|
date: z.date(),
|
|
sort: z.number().optional(),
|
|
coverSize: z.enum(['small', 'medium', 'large']).default('small'),
|
|
images: z.array(
|
|
z.object({
|
|
src: z.string(),
|
|
aspectRatio: z.number(),
|
|
})
|
|
),
|
|
noindex: z.boolean().optional(),
|
|
nofollow: z.boolean().optional(),
|
|
}),
|
|
});
|