Building a static blog with TinaCMS
1 min read
A demo of how MDX content and custom interactive components work together inside a visual editor.
On this page
Welcome
This post checks that MDX rendering and custom interactive components both work.
Callout component
Interactive components
The counter below is a purely client-side component that still works on a static site:
Clicks: 0
Tabs
interface Post {
title: string;
date: string;
}
Images and video
Code blocks
ts
export default defineConfig({
schema: {
collections: [
{ name: 'post', path: 'content/posts', format: 'mdx', fields: [] },
],
},
});Tables and quotes
| Capability | Supported |
|---|---|
| Visual editing | ✅ |
| MDX components | ✅ |
| Static deployment | ✅ |
Content lives in the Git repository; saving in the editor creates a commit.
Math
Write inline LaTeX inside backticks: $e^{i\pi}+1=0$. You can also insert the Math component: .
For a block formula, use a math code fence:
Braces, backslashes, and full-width punctuation inside math no longer break the MDX parser.