Interface: Config
Defined in: index.ts:276
A tomekit config, as returned by defineConfig.
Properties
collections
collections: TCollections;Defined in: index.ts:284
Keyed by collection name, which is also the name each collection is imported by, eg import { posts } from "tomekit/content".
references?
references?: TReferences;Defined in: index.ts:298
Metadata fields that hold slugs of another collection, keyed by collection name and then by key path. A slug that no document has fails the build, and the field is typed as that collection's slugs.
references: {
posts: { author: "authors", "sections.author": "authors" },
}
// authors.get(post.metadata.author).metadata.name