Skip to the content.

Home / Step 5

Step 5: How to Write Blog Posts?

Jekyll automatically generates a blog from Markdown (.md) files stored in the _posts/ folder. You just need to follow a specific format.

  1. Write a New Blog Post. Each post should be a Markdown file inside _posts/, and its filename must follow this format:

     _posts/YYYY-MM-DD-title.md
    
  2. Structure of a Blog Post. Each post must start with front matter (YAML at the top), followed by content. Example: _posts/2025-03-24-my-first-post.md

     ---
     title: My First Blog Post
     date: 2025-03-24
     ---
        
     # My First Blog Post 📝  
     Welcome to my blog! This is my first post using Jekyll on GitHub Pages.
        
     ## 🚀 Why Jekyll?  
     Jekyll allows you to create static websites and blogs with just Markdown.
        
     ## 🎯 Features  
     - Easy to write in Markdown  
     - Automatically generates a blog  
     - Free hosting with GitHub Pages  
        
     Stay tuned for more posts!
    

Congratulation: You completed the guide! 🎉