aboutsummaryrefslogtreecommitdiffstats
path: root/sanity/schemas/description.ts
blob: d5d5ff38c692f16b770cde839923eee7915d8e51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineType } from "sanity";

export default defineType({
    name: 'description',
    type: 'document',
    title: 'Description section',
    i18n: true,
    fields: [
        {
            title: "Title",
            name: 'title',
            type: 'string',
        },
        {
            title: "Content",
            name: "content",
            type: "array",
            of: [
                { type: "block" }
            ]
        }
    ]
})