diff --git a/src/content.config.ts b/src/content.config.ts new file mode 100644 index 0000000..6e97e59 --- /dev/null +++ b/src/content.config.ts @@ -0,0 +1,15 @@ +import { defineCollection, z } from "astro:content"; +import { glob } from "astro/loaders"; + +const blog = defineCollection({ + loader: glob({ base: "./src/content/posts", pattern: "**/*.{md,mdx}" }), + schema: z.object({ + title: z.string(), + description: z.string().optional(), + pubDate: z.coerce.date(), + modifiedDate: z.coerce.date().optional(), + wantsPanel: z.boolean().default(true) + }) +}); + +export const collections = { blog }; \ No newline at end of file diff --git a/src/content/posts/myExperiencesWithAstro.md b/src/content/posts/myExperiencesWithAstro.md new file mode 100644 index 0000000..82488fa --- /dev/null +++ b/src/content/posts/myExperiencesWithAstro.md @@ -0,0 +1,27 @@ +--- +title: "My experiences with Astro" +description: "" +pubDate: "18 Feb 2026 21:07" +--- + + + + # What is Astro? +Astro is a static site generator that allows you to combine components together to quickly put together a website. It's somewhat similar to something like React, but instead of having the bloat of all the javascript it generates, Astro outputs a static HTML website. The only javascript it includes is what you write in `