chore: layout

This commit is contained in:
enscribe 2024-09-10 12:51:03 -07:00
parent b9561ad2d0
commit 230dca64ca
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
27 changed files with 446 additions and 339 deletions

View file

@ -1,7 +1,7 @@
import { defineCollection, reference, z } from "astro:content";
import { defineCollection, reference, z } from 'astro:content'
const blog = defineCollection({
type: "content",
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
@ -9,12 +9,12 @@ const blog = defineCollection({
draft: z.boolean().optional(),
tags: z.array(z.string()).optional(),
author: z.union([reference("authors"), z.string()]).optional(),
author: z.union([reference('authors'), z.string()]).optional(),
}),
});
})
const authors = defineCollection({
type: "content",
type: 'content',
schema: z.object({
name: z.string(),
avatar: z.string().url(),
@ -26,6 +26,6 @@ const authors = defineCollection({
mail: z.string().email().optional(),
discord: z.string().optional(),
}),
});
})
export const collections = { blog, authors };
export const collections = { blog, authors }