Logo
Product updates

Welcome to the blog: a demo post

This post uses static mock data that matches Sanity's structure. Use it to see all blog functionalities without connecting to Sanity.

1 minute readUpdated January 20, 2025

Jane Smith
Jane Smith

Head of Content

Welcome to the blog: a demo post
Share

Key takeaways

  • Static mock data matches Sanity structure
  • All blog pages work: index, post, category, author
  • No Sanity project required to preview

Introduction

This is a demo post so you can see how the blog looks with real content. All data is static and matches the structure that Sanity would provide.

Getting started

When Sanity is not configured, the blog example pages use this mock data. Once you connect your Sanity project, the same pages will show your real content.

Key features

  • The blog supports:
  • Categories, authors, and featured images
  • Headings, blockquotes, lists, and code blocks
  • Table of contents, share buttons, and related posts
  1. Step-by-step: connect Sanity, add content, then deploy.
  2. Visit /blog/example to see all page types with mock data.
This is a blockquote. It stands out from the rest of the body text and is useful for pull quotes or callouts.

Code example

blog/sanity/index.ts · typescript
export function getPostBySlug(slug: string) {
  return getMockPostBySlug(slug);
}

Video embed

Example YouTube embed in blog post body.

Definitions

AEO (Answer Engine Optimization)
Optimizing content so that AI assistants and answer engines surface your content when users ask questions. Includes clear structure, FAQs, and authoritative phrasing.

Inline CTA

Ready to try OhhWells?

Start with a free trial. No credit card required.

Get started

Frequently asked questions

Where is the blog content stored?

Blog content is stored in Sanity CMS. When Sanity is not configured, the example pages at /blog/example use static mock data from app/blog/sanity/mockData.ts.

How do I add a new post?

Create a post document in Sanity Studio, set title, slug, author, category, body, and publish. The post will appear on the blog listing and at /blog/[slug].

Summary

You can edit the mock data in app/blog/sanity/mockData.ts to add more posts, change copy, or try different category and author combinations.

Jane Smith

Jane Smith

Head of Content

Jane writes about product and design. Previously at startups and agencies.

More from Jane Smith

Try it free

Get started with a free account. No credit card required.

Start free trial