diff --git a/src/content/authors/xevion.md b/src/content/authors/xevion.md new file mode 100644 index 0000000..01f50ae --- /dev/null +++ b/src/content/authors/xevion.md @@ -0,0 +1,7 @@ +--- +username: "xevion" +displayName: "Ryan Walters" +discord: ".xevion" +github: "xevion" +email: "ryan@walters.to" +--- \ No newline at end of file diff --git a/src/content/config.ts b/src/content/config.ts index 169dbab..b312c82 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,15 +1,25 @@ -import { defineCollection, z } from 'astro:content'; +import { defineCollection, z } from "astro:content"; const handbook = defineCollection({ - type: 'content', - // Type-check frontmatter using a schema - schema: z.object({ - title: z.string(), - description: z.string(), - // Transform string to Date object - pubDate: z.coerce.date(), - lastModified: z.coerce.date().optional(), - }), + type: "content", + // Type-check frontmatter using a schema + schema: z.object({ + title: z.string(), + description: z.string(), + // Transform string to Date object + pubDate: z.coerce.date(), + lastModified: z.coerce.date().optional(), + }), +}); +const authors = defineCollection({ + type: "data", + schema: z.object({ + username: z.string(), + displayName: z.string(), + email: z.string().optional(), + discord: z.string().optional(), + github: z.string().optional(), + }), }); -export const collections = { handbook }; +export const collections = { authors, handbook };