Tutorials
Create Blog Post
Learn how to create and manage blog posts in your Indie Kit website
Creating Blog Posts 📝
Indie Kit comes with a built-in blog system that supports MDX, tags, featured images, and automatic routing. Let's learn how to create beautiful blog posts! ✨
Quick Start 🚀
-
Rename the sample blog post file from:
to:
-
Your blog will automatically appear at
/blog/add-button-to-any-website
!
Blog Post Structure 📄
Each blog post is an MDX file with frontmatter metadata. Here's the structure:
Frontmatter Fields 📋
title
: The title of your blog posttags
: Array of tags for categorizing your postfeaturedImage
: Path to the featured image (stored inpublic
directory)createdDate
: Publication date (YYYY-MM-DD format)description
: Brief description for SEO and previews
Writing Content ✍️
Your blog posts support:
- 📝 Full Markdown syntax
- 🎨 MDX components
- 📊 Code blocks with syntax highlighting
- 🖼️ Images and media
- 📑 Automatic table of contents
- 🔗 Internal and external links
Example Content Structure
Best Practices 💡
-
Images
- Store images in
public/assets/images/
- Use descriptive file names
- Optimize images for web
- Store images in
-
Tags
- Use relevant, consistent tags
- Keep tags lowercase
- Use hyphen for multi-word tags
-
SEO
- Write descriptive titles
- Include meaningful descriptions
- Use relevant tags
- Add alt text to images
Viewing Your Blog 👀
- Individual posts:
/blog/[slug]
- Blog listing:
/blog
- Tags are automatically grouped
- Featured images appear in previews
The blog system will automatically:
- Generate SEO metadata
- Create a table of contents
- Handle routing
- Show related posts
- Enable social sharing
Now you're ready to start blogging! Create engaging content and share it with your audience! 🚀