codex rebase
Deploy on push / deploy (push) Successful in 16s

This commit is contained in:
2026-06-10 22:46:25 -07:00
parent bbc2dc6b58
commit 3c2dd93d0b
25 changed files with 7225 additions and 281 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defineCollection } from "astro:content";
import { glob } from "astro/loaders";
import { z } from "astro/zod";
const posts = defineCollection({
loader: glob({ base: "./src/content/posts", pattern: "**/*.md" }),
schema: z.object({
title: z.string(),
date: z.coerce.date(),
excerpt: z.string().default(""),
slug: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
draft: z.boolean().default(false),
}),
});
export const collections = { posts };