Mastodon post on homepage

This commit is contained in:
2025-08-30 19:38:12 -04:00
parent 26d9288aa4
commit 67e2229b82
12 changed files with 278 additions and 12 deletions
+15
View File
@@ -0,0 +1,15 @@
import { z, defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
const blogCollection = defineCollection({
loader: glob({ pattern: '**\/*.md', base: './src/content/blog' }),
schema: z.object({
title: z.string(),
pubDate: z.string().transform((str: string) => new Date(str)),
tags: z.array(z.string()),
}),
});
export const collections = {
blog: blogCollection,
};