
Content Collections reads files in src/data/posts and turns them into typed data. The file path
becomes the URL slug, so nested folders map directly to nested routes.
Example file structure
This structure maps to:
/posts/welcome-to-tanstack-start-blog/posts/guides/rss-and-sitemaps/posts/guides/og-images
Frontmatter requirements
Required fields
1
2
3
4
5
6
7
8
Typed metadata
Content collections adds readingTime, date, and mdast fields so you can build features like
reading-time badges or custom indexes without extra parsing.