louise-toolkit/content
content
Collections with drafts, publish, version history and full-text search.
Sourdough, croissants and seasonal pastries — baked in-house daily since 2011. Order before 7am for same-day pickup.
import { defineCollection } from "louise-toolkit/content";
export const pages = defineCollection({
slug: "pages",
fields: {
title: { type: "text", required: true },
body: { type: "text" },
},
versions: { drafts: true },
search: { fields: ["title", "body"] },
});