svrjs-nextjs-website/schemaTypes/blog.ts

52 lines
821 B
TypeScript
Raw Normal View History

2024-09-07 14:59:43 +02:00
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"
}
]
}
]
};