mirror of https://github.com/onweru/compose.git

weru
02.55.2025 af9906211aee111836bcaccc401d2afbdb9482c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Collection } from "tinacms";
 
const Doc: Collection = {
  name: "docs",
  label: "Docs",
  path: "content/docs",
  frontmatterFormat: "toml",
  frontmatterDelimiters: "+++",
  format: "md",
  fields: [
    {
      type: "string",
      name: "title",
      label: "Title",
      isTitle: true,
      required: true,
    },
    {
      type: "number",
      name: "weight",
      label: "Weight"
    },
    {
      type: "string",
      name: "description",
      label: "Description"
    },
    {
      type: "rich-text",
      name: "body",
      label: "Body",
      isBody: true,
    },
  ],
};
 
export default Doc;