Something went wrong. Try again.
🌐 little site of mines angelcube.dev
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829import { glob } from "astro/loaders"import { z } from "astro/zod"import { defineCollection } from "astro:content"import { Temporal } from "temporal-polyfill"
const logbook = defineCollection({ loader: glob({ base: "./content/logbook", pattern: "**/*.{md,mdx}" }), schema: z.object({ title: z.string(), description: z.string(), collection: z.string().optional(), published_date: z.string().transform((value) => Temporal.PlainDate.from(value)), updated_date: z.string().transform((value) => Temporal.PlainDate.from(value)) })})
const bulletin = defineCollection({ loader: glob({ base: "./content/bulletin", pattern: "**/*.{md,mdx}" }), schema: z.object({ title: z.string(), description: z.string(), collection: z.string().optional(), published_date: z.string().transform((value) => Temporal.PlainDate.from(value)), updated_date: z.string().transform((value) => Temporal.PlainDate.from(value)) })})
export const collections = { logbook, bulletin }