Capital/tina/collection/author.ts

30 lines
524 B
TypeScript
Raw Normal View History

2024-01-20 15:19:15 +00:00
import type { Collection } from "tinacms";
const Author: Collection = {
label: "Authors",
name: "author",
path: "content/authors",
format: "mdx",
fields: [
{
type: "string",
label: "Name",
name: "name",
isTitle: true,
required: true,
},
{
type: "image",
label: "Avatar",
name: "avatar",
},
{
type: "rich-text",
label: "Introduction",
name: "_body",
templates: [],
isBody: true,
},
],
};
export default Author;