This tutorial covers how to use Astro's content collections with markdown files instead of a single JSON file. It walks through restructuring a book review site's data source by switching from the `file` loader to the `glob` loader, organizing markdown files in a subfolder, using front matter for metadata, and leveraging auto-generated IDs from filenames. The lesson also shows how to use those IDs as dynamic hrefs in a book card component.

β€’5m watch time

Sort: