Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import { defineCollection, z } from "astro:content"
const progress = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
hash: z.string(),
dateStart: z.union([z.coerce.date(), z.string()]),
}),
})
const blog = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
summary: z.string(),
date: z.coerce.date(),
tags: z.array(z.string()),
draft: z.boolean().optional(),
}),
})
const posts = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
summary: z.string(),
date: z.coerce.date(),
tags: z.array(z.string()),
draft: z.boolean().optional(),
demoUrl: z.string().optional(),
demoUrlDesc: z.string().optional(),
repoUrl: z.string().optional(),
}),
})
const legal = defineCollection({
type: "content",
schema: z.object({
title: z.string(),
date: z.coerce.date(),
}),
})
export const collections = { progress, blog, posts, legal }
007e853d2This file is pinned to the selected release. Download the original to open it in your design tool.