refactor guide pages to use content collections

also configuration->guide
This commit is contained in:
outfoxxed 2025-05-13 20:56:31 -07:00
parent a449f976c7
commit b066a48976
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
13 changed files with 68 additions and 83 deletions

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

@ -0,0 +1,11 @@
import { defineCollection, z } from "astro:content";
import { glob } from "astro/loaders";
const guide = defineCollection({
loader: glob({ pattern: "**/*", base: "src/guide" }),
schema: z.object({
title: z.string(),
}),
});
export const collections = { guide };