Why Separate Data from Configuration?
Page frontmatter is perfect for configuration (layout, styles, component settings), but it becomes unwieldy when you need to manage large datasets. Imagine a maps component with 50 markers - your frontmatter would be massive and hard to maintain.
The solution: store data in JSON files, reference them from components.
Benefits:
- Clean separation: Configuration in frontmatter, content in JSON
- Reusability: Same data across multiple pages
- Maintainability: Update data without touching page files
- Scalability: Handle large datasets without cluttering pages
- Version control: Track data changes separately