Posts working
This commit is contained in:
12
src/content/blog/welcome.md
Normal file
12
src/content/blog/welcome.md
Normal 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
16
src/content/config.ts
Normal 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,
|
||||
};
|
Reference in New Issue
Block a user