Content collections, explained
You define a collection and a loader, which tells Astro where the content comes from. The built-in loaders read folders of Markdown, MDX and other data files, and custom loaders can pull from outside sources.
A schema describes what each entry should contain. If a post is missing its date, or a field has the wrong type, you find out during development instead of on the live site.
Pages then query the content with functions such as getCollection. Your editor can autocomplete the fields, which makes mistakes less likely.
Do not confuse them with Webflow CMS collections, which are a visual content tool. Astro's are for developers. If non-technical editors need a friendly interface, a headless CMS like Sanity is usually a better fit.



