51 lines
821 B
TypeScript
51 lines
821 B
TypeScript
export default {
|
|
name: "blog",
|
|
type: "document",
|
|
title: "Blog",
|
|
fields: [
|
|
{
|
|
name: "title",
|
|
type: "string",
|
|
title: "Title"
|
|
},
|
|
{
|
|
name: "slug",
|
|
type: "slug",
|
|
title: "Slug Title",
|
|
options: {
|
|
source: "title"
|
|
}
|
|
},
|
|
{
|
|
name: "titleImage",
|
|
type: "image",
|
|
title: "Title Image"
|
|
},
|
|
// {
|
|
// name: 'publishedAt',
|
|
// title: 'Published At',
|
|
// type: 'datetime',
|
|
// },
|
|
{
|
|
name: "smallDescription",
|
|
type: "text",
|
|
title: "Small Description"
|
|
},
|
|
{
|
|
name: "content",
|
|
type: "array",
|
|
title: "Content",
|
|
of: [
|
|
{
|
|
type: "block"
|
|
},
|
|
{
|
|
type: "image"
|
|
},
|
|
{
|
|
type: "code"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|