Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/roe.dev. This is the code and content for my personal website, built in Nuxt. roe.dev
Something went wrong. Try again.
1.5 kB · 65 lines
TypeScript
at commit 07a2298e
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566import { defineField, defineType } from 'sanity'
export default defineType({ name: 'entity', title: 'Account', type: 'document', preview: { select: { title: 'name', subtitle: 'description', }, }, fields: [ defineField({ name: 'name', title: 'Name', type: 'string', validation: Rule => Rule.required(), }), defineField({ name: 'description', title: 'Description', type: 'text', rows: 2, }), defineField({ name: 'socialHandles', title: 'Social media handles', type: 'object', fields: [ defineField({ name: 'bluesky', title: 'Bluesky handle', type: 'string', description: 'Handle without @ symbol (e.g., nuxt.bsky.social)', }), defineField({ name: 'linkedin', title: 'Linkedin handle', type: 'string', description: 'Company or person handle (e.g., nuxtjs)', }), defineField({ name: 'mastodon', title: 'Mastodon handle', type: 'string', description: 'Full handle with instance (e.g., nuxt@fosstodon.org)', }), ], }), defineField({ name: 'website', title: 'Website', type: 'url', }), defineField({ name: 'logo', title: 'Logo', type: 'image', options: { hotspot: true, }, }), ],})