adding sanity components
This commit is contained in:
30
schemas/objects/seo.ts
Normal file
30
schemas/objects/seo.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { defineField, defineType } from "sanity";
|
||||
|
||||
export const seo = defineType({
|
||||
name: 'seo',
|
||||
title: 'SEO',
|
||||
type: 'object',
|
||||
fields: [
|
||||
defineField({
|
||||
name: 'title',
|
||||
title: 'Meta Title',
|
||||
type: 'string'
|
||||
}),
|
||||
defineField({
|
||||
name: 'description',
|
||||
title: 'Meta Description',
|
||||
type: 'text'
|
||||
}),
|
||||
defineField({
|
||||
name: 'keywords',
|
||||
title: 'Keywords',
|
||||
type: 'array',
|
||||
of: [{type: 'string'}]
|
||||
}),
|
||||
defineField({
|
||||
name: 'image',
|
||||
title: 'Preview Image',
|
||||
type: 'image'
|
||||
})
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user