mirror of
https://github.com/skoelle/28k8-moonweb-org.git
synced 2026-09-18 02:40:24 +00:00
initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user