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

Head of Content

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
- Step-by-step: connect Sanity, add content, then deploy.
- 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
export function getPostBySlug(slug: string) {
return getMockPostBySlug(slug);
}Video embed
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
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
Head of Content
Jane writes about product and design. Previously at startups and agencies.
More from Jane Smith