master-wiki/config.ts
Alexander Navarro 9a4a9b5c12 Update from obsidian -
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
2023-09-17 10:49:32 -03:00

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,
};