WebsiteFluffy/src/content/content.ts
deepsource-autofix[bot] 60ff51d459
style: format code with Prettier
This commit fixes the style issues introduced in 291552c according to the output
from Prettier.

Details: None
2024-05-28 18:02:15 +00:00

36 lines
824 B
TypeScript

import { z, defineCollection, reference } from "astro:content";
const posts = defineCollection({
type: "content",
schema: z.object({
draft: z.boolean().optional().default(false),
title: z.string(),
description: z.string(),
pubDate: z.string().transform((str) => new Date(str)),
tags: z.array(reference("tags")),
}),
});
const certificates = defineCollection({
type: "data",
schema: z.object({
title: z.string(),
provider: z.string(),
achieved: z.date(),
skills: z.array(z.string()).optional(),
link: z.string().optional(),
}),
});
const tags = defineCollection({
type: "content",
schema: z.object({
name: z.string(),
}),
});
export const collections = {
posts,
certificates,
tags,
};