Skip to main content

Getting Started with Sanity CMS

January 23, 2026

Getting Started with Sanity CMS

This blog is now powered by Sanity CMS, a modern headless content management system that provides a great authoring experience.

Why Sanity?

Sanity offers several advantages:

  • Real-time collaboration - Multiple editors can work simultaneously
  • Portable Text - Rich text that's stored as structured data
  • Flexible schemas - Define your content model with code
  • Fast API - Global CDN ensures quick content delivery

Next Steps

Now that the CMS is set up, I can focus on creating content instead of managing files. Stay tuned for more posts!

import { defineConfig } from 'sanity'
import { deskTool } from 'sanity/desk'

export default defineConfig({
  name: 'default',
  title: 'My Sanity Blog',

  projectId: 'yourProjectId',
  dataset: 'production',

  plugins: [deskTool()],

  schema: {
    types: [
      {
        name: 'post',
        title: 'Post',
        type: 'document',
        fields: [
          { name: 'title', type: 'string', title: 'Title' },
          { name: 'slug', type: 'slug', title: 'Slug', options: { source: 'title' } },
          { name: 'summary', type: 'text', title: 'Summary' },
          { name: 'body', type: 'array', title: 'Body', of: [{ type: 'block' }] }
        ]
      }
    ]
  }
})