Posts working

This commit is contained in:
2025-05-18 11:30:19 -06:00
parent 6ceb4918f7
commit 066c1b4115
11 changed files with 832 additions and 100 deletions

View File

@ -0,0 +1,12 @@
---
title: "Welcome"
description: "Welcome to my website! :)"
pubDate: "2024-10-20"
tags: ["meta"]
---
Welcome to my site! This is a place for me to share my thoughts and updates on
my projects. I hope you find something interesting here.
Feel free to reach out if you have any questions or comments. I'd love to hear
from you! I can be reached by email at [me@atri.dad](mailto:me@atri.dad).

16
src/content/config.ts Normal file
View File

@ -0,0 +1,16 @@
import { defineCollection, z } from 'astro:content';
const blogCollection = defineCollection({
type: 'content',
schema: z.object({
title: z.string(),
description: z.string(),
pubDate: z.coerce.date(),
updatedDate: z.coerce.date().optional(),
tags: z.array(z.string()).default([]),
}),
});
export const collections = {
'blog': blogCollection,
};