back to blog

Sample Draft Post

Sample Draft Post

This is a sample draft post that demonstrates how the status feature works in our blog system.

What is a Draft?

A draft is a post that’s still in progress and not ready for public consumption. It’s a great way to work on content without making it immediately available to everyone.

How to Use Drafts

  1. Add status: 'draft' to your frontmatter
  2. Preview your draft by toggling the “Show Drafts” button
  3. When ready to publish, change the status to published or remove the status field entirely

Drafts are perfect for:

  • Working on content incrementally
  • Getting feedback before publishing
  • Planning future content
// Example of how to create a draft post
const draftPost = {
  title: 'My New Post',
  status: 'draft',
  publishedAt: '2025-03-20',
  content: 'Still working on this...'
};

When you’re ready to publish, simply update the status or remove it entirely to default to “published”.