Personal Site
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add sample posts to content collections for testing && create post collection

+26
src/content/blog/assets/nested.png

This is a binary file and will not be displayed.

src/content/blog/assets/test.png

This is a binary file and will not be displayed.

+6
src/content/blog/nested/test.md
··· 1 + --- 2 + title: Testing nesting 3 + bio: nested !! 4 + banner: nested.png 5 + pub: 2025-08-13 6 + ---
+6
src/content/blog/test.md
··· 1 + --- 2 + title: Test 3 + bio: A Test Post 4 + banner: test.png 5 + pub: 2025-08-13 6 + ---
+14
src/content/config.ts
··· 1 + import { defineCollection, z } from "astro:content"; 2 + import { glob } from "astro/loaders"; 3 + 4 + const blog = defineCollection({ 5 + loader: glob({ pattern: "**/*.md", base: "./src/content/blog" }), 6 + schema: z.object({ 7 + title: z.string(), 8 + bio: z.string(), 9 + banner: z.string().endsWith(".png"), 10 + pub: z.date(), 11 + }), 12 + }); 13 + 14 + export const collections = { blog };