Markdown (MD) Template & Guide
Markdown (MD) Template & Guide
This post serves as a template for pure Markdown posts (.md files). Use this structure when you need simple, static content without interactive components.
Frontmatter Configuration
Every post should start with frontmatter (the section between --- markers):
---
title: "Your Post Title"
date: "YYYY-MM-DD"
excerpt: "A brief summary (1-2 sentences)"
coverImage: "/posts/category/slug/cover.jpg"
---
Essential Sections
1. Introduction
Start with a compelling hook that:
- Explains what readers will learn
- Sets expectations
- Draws them in with a question or statement
2. Main Content
Break your content into logical sections with clear headings.
Use Examples
Show, don't just tell. Include code examples with syntax highlighting.
Visual Elements
Include images, diagrams, or screenshots to illustrate your points.
3. Key Takeaways
Summarize the main points in a bulleted list:
- ✅ Start with clear frontmatter
- ✅ Structure content with headings
- ✅ Include code examples
- ✅ Add visual elements
- ✅ End with actionable takeaways
Writing Tips
Do's ✅
- Be Clear: Use simple language
- Be Concise: Respect your reader's time
- Be Helpful: Provide actionable advice
- Be Visual: Use formatting to enhance readability
Don'ts ❌
- Don't use jargon without explanation
- Don't create walls of text
- Don't forget to proofread
- Don't skip the conclusion
Content Types
Tutorial Format
1. Prerequisites
2. Step-by-step instructions
3. Expected outcomes
4. Troubleshooting
Opinion/Analysis Format
1. Context/Background
2. Your perspective
3. Supporting evidence
4. Conclusion
How-To Guide Format
1. Problem statement
2. Solution overview
3. Detailed implementation
4. Results/Benefits
Engagement Elements
Call-to-Action (CTA)
End with a clear next step:
💡 Try it yourself: Create a post using this template and share your experience!
Questions for Readers
Encourage interaction:
- What's your preferred blog post structure?
- Have you tried MDX before?
- What topics would you like to see covered?
SEO Best Practices
- Use descriptive headings (H1, H2, H3)
- Include relevant keywords naturally
- Write compelling excerpts
- Add alt text to images
- Keep URLs clean and readable
Final Checklist
Before publishing, ensure:
- [ ] Frontmatter is complete and accurate
- [ ] Title is clear and compelling
- [ ] Excerpt summarizes the post well
- [ ] Content is well-structured with headings
- [ ] Code examples are tested
- [ ] Images are optimized
- [ ] Links work correctly
- [ ] Grammar and spelling are checked
- [ ] The post provides value to readers
Conclusion
A well-structured blog post is like a well-organized room—everything has its place, and readers can easily find what they need.
Use this template as a starting point, but don't be afraid to adapt it to your content and style. The best posts are those that serve your readers while showcasing your unique voice.
Happy writing! ✍️