Variable: collections

const collections: Collections<Source>;

Defined in: content.ts:59

Every collection in your config. Provided by the tomekit() Vite plugin; importing it without the plugin throws.

Example

import { collections } from "tomekit/content";

collections.get("posts").get("hello-world").metadata.title;
collections.names(); // ["notes", "posts"]