Skip to content
Your Name
Menu

Writing

Notes1 min read

Notes on content collections

A short development note about structuring portfolio content so new posts and projects stay easy to add.

  • astro
  • content

Content collections pay off when the schema matches how you actually write.

Schema tips

  • Keep required fields few
  • Make optional fields truly optional in the UI
  • Prefer enums for status and category values you query often

Workflow

  1. Add a markdown file
  2. Fill frontmatter
  3. Write the body
  4. Let the site regenerate routes

That should be the entire publishing loop for most entries.

Comments

Signed in with GitHub. Discussion is stored as a GitHub issue.