mirror of
https://github.com/skoelle/28k8-moonweb-org.git
synced 2026-09-17 18:30:24 +00:00
13 lines
815 B
TypeScript
13 lines
815 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
const releaseSchema = z.object({
|
|
title: z.string(), group: z.string(), year: z.number().int().optional(), platform: z.string(),
|
|
credits: z.array(z.object({ role: z.string(), name: z.string() })).default([]),
|
|
description: z.string(), download_url: z.string().url().optional(), screenshot: z.string().optional(),
|
|
file_id_diz: z.string(),
|
|
});
|
|
const skyline = defineCollection({ type: 'content', schema: releaseSchema });
|
|
const kosmosDesign = defineCollection({ type: 'content', schema: releaseSchema });
|
|
const tropicdreams = defineCollection({ type: 'content', schema: releaseSchema });
|
|
const esprit = defineCollection({ type: 'content', schema: releaseSchema });
|
|
export const collections = { skyline, 'kosmos-design': kosmosDesign, tropicdreams, esprit };
|