Make Your First Blog Post
Make a directory for your blog
my-blog $ mkdir blog
Write the post
---
title: My First Blog Post
description: The first blog post I wrote on my new blog.
date: 2025-10-28
---
This is my first blog post! Isn’t it exciting?
http://localhost:8080/blog/my-first-blog-post/
Create a layout for your post
---
layout: layouts/base.liquid
---
<h1>{{ title }}</h1>
<p>Published: <time datetime="{{ date | date: '%Y-%m-%d' }}">{{ date | date: '%d %B %Y' }}</time></p>
{{ content }}
Assign the blog layout for all blog posts
{
"layout": "layouts/blog.liquid"
}
Might need to restart the server.
- Previous
- Add Some Style
- Next
- Create a Blog Archive