finished navbar and blog. todo: finishing touches
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import {defineConfig} from 'sanity'
|
||||
import {structureTool} from 'sanity/structure'
|
||||
import {ClipboardIcon, HomeIcon, MenuIcon, WrenchIcon} from '@sanity/icons'
|
||||
import {ClipboardIcon, EditIcon, HomeIcon, MenuIcon, WrenchIcon} from '@sanity/icons'
|
||||
import {schemaTypes} from './schemaTypes'
|
||||
import {presentationTool} from 'sanity/presentation'
|
||||
import {linkField} from 'sanity-plugin-link-field'
|
||||
@@ -41,11 +41,36 @@ export default defineConfig({
|
||||
.title('Custom pages')
|
||||
.icon(ClipboardIcon)
|
||||
.child(S.documentTypeList('custom').title('Content')),
|
||||
S.listItem()
|
||||
.title('Blog')
|
||||
.icon(EditIcon)
|
||||
.child(S.documentTypeList('blog').title('Blog')),
|
||||
]),
|
||||
}),
|
||||
// @ts-ignore
|
||||
linkField({
|
||||
linkableSchemaTypes: ['custom'],
|
||||
linkableSchemaTypes: ['custom', 'blog'],
|
||||
customLinkTypes: [
|
||||
{
|
||||
title: 'Static pages',
|
||||
value: 'static',
|
||||
icon: ClipboardIcon,
|
||||
options: [
|
||||
{
|
||||
title: 'Home',
|
||||
value: '/',
|
||||
},
|
||||
{
|
||||
title: 'Second page',
|
||||
value: '/second',
|
||||
},
|
||||
{
|
||||
title: 'Blog',
|
||||
value: '/blog',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}),
|
||||
presentationTool({
|
||||
previewUrl: {
|
||||
|
||||
Reference in New Issue
Block a user