Configuration
One file, with autocompletion
Describe your collections and fields in YAML, TOML or JSON. The official JSON schema validates your config and powers autocompletion in VS Code and other editors, so mistakes are caught as you type.
Learn the configuration basics# yaml-language-server: $schema=https://unpkg.com/@sveltia/cms/schema/sveltia-cms.json
backend:
name: github
repo: user/repo
media_folder: /public/media
collections:
- name: posts
label: Posts
folder: /content/posts
fields:
- { name: title, widget: string }
- { name: date, widget: datetime }
- { name: body, widget: richtext }
