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

weru
02.11.2025 3ce592799ee1f8f4f6688d148885582473887048
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
import { Collection } from "tinacms";
 
const Tutorial: Collection = {
  name: "tutorials",
  label: "Tutorials",
  path: "content/tutorials",
  frontmatterFormat: "toml",
  frontmatterDelimiters: "+++",
  format: "md",
  fields: [
    {
      type: "string",
      name: "title",
      label: "Title",
      isTitle: true,
      required: true,
    },
    {
      type: "number",
      name: "weight",
      label: "Weight",
    },
    {
      type: "rich-text",
      name: "body",
      label: "Body",
      isBody: true,
    },
  ],
};
 
export default Tutorial;