Affected files: .obsidian/workspace.json config.ts games/castlevania-symphony-of-the-night.md games/phoenix-wright-ace-attorney-justice-for-all.md games/phoenix-wright-ace-attorney-trials-and-tribulations.md games/phoenix-wright-ace-attorney.md projects/games.md projects/personal-page-notes/One Game.md projects/personal-page.md projects/todos-notes/Rewrite neovim config.md projects/todos.md
27 lines
532 B
TypeScript
27 lines
532 B
TypeScript
import { z, defineCollection } from 'astro:content';
|
|
|
|
// AstroJS collection configuration
|
|
|
|
const games = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
release: z.coerce.date(),
|
|
developers: z.array(z.string()),
|
|
genres: z.array(z.string()),
|
|
status: z.enum([
|
|
'Backlog',
|
|
'On Line',
|
|
'Playing',
|
|
'Played',
|
|
'Wishlist',
|
|
'Want to Replay',
|
|
'Always Playable',
|
|
]),
|
|
times_played: z.number(),
|
|
}),
|
|
});
|
|
|
|
export const collections = {
|
|
games,
|
|
};
|