Back to Blog

How to Create Blog Posts

Blog Posts Directory

This directory contains all the blog posts for the website. Each blog post is a Markdown file with frontmatter metadata.

Creating a New Post

  1. Create a new .md file in this directory
  2. Use a descriptive filename (this becomes the URL slug)
  3. Add the required frontmatter at the top of the file

Frontmatter Structure

Each blog post should start with YAML frontmatter between --- markers:

---
title: "Your Post Title"
date: "2025-08-26"
excerpt: "A brief description of your post (optional but recommended)"
image: "/images/blog/your-image.jpg" (optional)
---

Markdown Content

After the frontmatter, write your content in standard Markdown format. The blog supports:

  • Headers (H1-H6)
  • Bold and italic text
  • Lists (ordered and unordered)
  • Links
  • Images
  • Code blocks
  • Blockquotes
  • And more standard Markdown features

Example Post Structure

---
title: "My Awesome Post"
date: "2025-08-26"
excerpt: "This is what my post is about"
image: "/images/blog/awesome-post.jpg"
---

# My Awesome Post

This is the content of my post...

## A Subheading

More content here...

File Naming

  • Use lowercase letters
  • Replace spaces with hyphens
  • Use descriptive names (they become the URL slug)
  • Examples: my-first-post.md, learning-nextjs.md, project-showcase.md