Adding Astrojs sources.

This commit is contained in:
Benjamin A. Shelton 2026-06-05 14:31:12 -06:00
commit e20f4f45de
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
169 changed files with 11389 additions and 0 deletions

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

@ -0,0 +1,20 @@
import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';
const notes = defineCollection({
loader: glob({base: './src/notes', pattern: '**/*.{md,mdx}'}),
schema: z.object({
title: z.string(),
date: z.string().transform((s) => {
return new Date(`${s}T00:00:00-0600`);
}),
meta_description: z.string().optional(),
sub_heading: z.string().optional(),
scripture_category: z.string().default('gospels'),
post_image: z.string().optional(),
tags: z.array(z.string()).optional(),
}),
});
export const collections = { notes };