All docs
On this page

Collections

How a collection in your config file becomes an editor and a directory of Markdown.

Collections and singletons

TODO — define both, and the difference. A collection is many entries in a directory; a singleton is one file. Confirm the exact terms Kobun uses in its own UI so this page and the product agree.

Declaring a collection

TODO — walk through the config below field by field. Confirm every key name against the real parser, including whether path is relative to the repo root or to a configured content root.

// TODO — replace with a verified example. This is the landing page's illustration.
{
	"collections": {
		"blog": {
			"label": "Blog",
			"path": "src/content/blog",
			"fields": {}
		}
	}
}

Where entries are written

TODO — filename derivation (from the slug field? from the title?), collisions on rename, and what happens to an entry’s file when its slug changes.

Validation

TODO — the landing page claims entries are validated against the schema before they are committed, so a missing slug is caught in the browser rather than by the build. Confirm and describe what the author actually sees when validation fails.