Interface: Config
Defined in: index.ts:277
A tomekit config, as returned by defineConfig.
Properties
collections
collections: TCollections;Defined in: index.ts:285
Keyed by collection name, eg posts for collections.get("posts").
references?
references?: TReferences;Defined in: index.ts:299
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" },
}
// collections.get("authors").get(post.metadata.author).metadata.name