Tampa, Florida
Posts

Create, edit and delete blog posts

March 17, 2025
You can create, edit and delete posts by adding, modifying or removing *.mdx files in the src/app/blog/posts directory. The frontmatter is used to set the post's metadata: title, description, image, and tags. It's used in the post's page and in meta- and open graph tags. You can use MDX to write the content of your posts. It helps you write rich and dynamic content with minimal code. Some MDX elements will be automatically transformed to Once UI components to integrate better in the design and add additional functionality. You can use custom components in MDX files, but you need to import them first in the src/components/mdx.tsx file. As you can see, the Table and CodeBlock components are already imported and available for use. You can add more by simply importing them to this file and passing them to the components object. Hot reload of MDX files is currently not supported, but we're working on it.
On this page