feat(all): first init

This commit is contained in:
z0x 2025-01-08 22:06:02 -05:00
commit 67c6e47f58
34 changed files with 2155 additions and 0 deletions

14
src/content.config.ts Normal file
View file

@ -0,0 +1,14 @@
import { defineCollection, z } from "astro:content";
import { glob } from 'astro/loaders';
const blog = defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: "./src/content" }),
schema: z.object({
title: z.string(),
description: z.string(),
date: z.coerce.date(),
draft: z.boolean().optional(),
}),
});
export const collections = { blog };