Gayane
January 10, 2024

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 ✅

  1. Be Clear: Use simple language
  2. Be Concise: Respect your reader's time
  3. Be Helpful: Provide actionable advice
  4. Be Visual: Use formatting to enhance readability

Don'ts ❌

  1. Don't use jargon without explanation
  2. Don't create walls of text
  3. Don't forget to proofread
  4. 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! ✍️