Why Not Just Use Pages?
This is a member-only chapter. Log in with your Signal Over Noise membership email to continue.
Log in to readModule 4 · Section 2 of 9
Why Not Just Use Pages?
You could put every blog post in src/pages/blog/post-name.astro. It works. But you end up with component boilerplate in every content file, no way to query posts by date or tag, no type safety on frontmatter, and no central place to define what a post is.
Content collections fix all of that. You write content in Markdown, define a schema once, and Astro handles querying and type-checking. The content files stay clean — just words and frontmatter, no component code.