Getting Started with Our Blog
By AI
Getting Started with Our Blog
Welcome to the blog. This is a sample post that demonstrates the content collection schema used by this boilerplate.
Content Collections
This blog uses Astro’s Content Layer API with a typed Zod schema. Each post requires:
- title — The post title
- date — Publication date (ISO format)
- author — Author name (defaults to “AI”)
- keywords — SEO keywords as an array of strings
- description — Meta description for SEO
Optional fields include tags, categories, and draft.
Writing Posts
Create a new .md file in src/content/blog/ with the frontmatter fields above. The file name becomes the URL slug.
For example, this post is accessible at /blog/getting-started.