1
0
Fork 0
freesewing/sites/sanity/schemas/showcase.js

52 lines
871 B
JavaScript
Raw Normal View History

2022-10-20 22:36:16 +02:00
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',
options: {
source: 'title',
}
2022-10-20 22:36:16 +02:00
},
{
name: 'date',
type: 'date',
title: 'Date',
},
{
name: 'intro',
title: 'Intro',
type: 'text',
},
2022-10-20 22:36:16 +02:00
{
name: 'body',
title: 'Body',
type: 'markdown',
2022-10-20 22:36:16 +02:00
},
{
name: 'image',
title: 'Image',
type: 'array',
of: [{type: 'image'}]
},
{
name: 'caption',
type: 'string',
title: 'Main (first) image caption',
},
{
name: 'maker',
title: 'Maker',
type: 'string',
}
]
})