aboutsummaryrefslogtreecommitdiff
path: root/src/content/config.ts
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-01-24 22:50:02 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-01-24 23:17:14 -0500
commit5fab0381b308eb5a1c837ffdd5e0ddd757e769d3 (patch)
tree2a08add3e122f2d1fc91d30908e37a7df46ceaa8 /src/content/config.ts
parent2c37ad34e91893596547060e0ab6bd320ef31bde (diff)
downloadpersonal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.tar.gz
personal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.tar.bz2
personal-website-5fab0381b308eb5a1c837ffdd5e0ddd757e769d3.zip
Starting to work on blog
Diffstat (limited to 'src/content/config.ts')
-rw-r--r--src/content/config.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/content/config.ts b/src/content/config.ts
new file mode 100644
index 0000000..694e87d
--- /dev/null
+++ b/src/content/config.ts
@@ -0,0 +1,16 @@
+import { defineCollection, z } from "astro:content";
+import { rssSchema } from '@astrojs/rss';
+
+const blogCollection = defineCollection({
+ type: 'content',
+ schema: z.object({
+ title: z.string(),
+ description: z.string(),
+ date: z.date(),
+ tags: z.array(z.string()),
+ }),
+});
+
+export const collections = {
+ blog: blogCollection,
+};