45 lines
770 B
JavaScript
45 lines
770 B
JavaScript
![]() |
export const showcaseSchemaBuilder = (lang) => ({
|
||
|
name: `showcase${lang}`,
|
||
|
type: 'document',
|
||
|
title: `Showcase ${lang.toUpperCase()}`,
|
||
|
fields: [
|
||
|
{
|
||
|
name: 'title',
|
||
|
type: 'string',
|
||
|
title: 'Title',
|
||
|
},
|
||
|
{
|
||
|
name: 'slug',
|
||
|
type: 'slug',
|
||
|
title: 'Slug',
|
||
|
},
|
||
|
{
|
||
|
name: 'date',
|
||
|
type: 'date',
|
||
|
title: 'Date',
|
||
|
},
|
||
|
{
|
||
|
name: 'body',
|
||
|
title: 'Body',
|
||
|
type: 'array',
|
||
|
of: [{type: 'block'}]
|
||
|
},
|
||
|
{
|
||
|
name: 'image',
|
||
|
title: 'Image',
|
||
|
type: 'array',
|
||
|
of: [{type: 'image'}]
|
||
|
},
|
||
|
{
|
||
|
name: 'caption',
|
||
|
type: 'string',
|
||
|
title: 'Main (first) image caption',
|
||
|
},
|
||
|
{
|
||
|
name: 'maker',
|
||
|
title: 'Maker',
|
||
|
type: 'string',
|
||
|
}
|
||
|
]
|
||
|
})
|