Create 'about' and 'tags' page in HEXO

In this text, I will introduce how to create ‘about’ and ‘tags’ page in Hexo.

Create new pages

First of all, use the following commands to create about page and tags page.

1
2
hexo new page about
hexo new page tags

Edit the about page

It’s easy to make the ‘about page’, as you can use Markdown to describe what you want to show on it.

The index.md file will be created in the source\about path, just edit it .

Edit the tags page

You can see a index.md file in source\tags, open it.

Add the following two lines after date line

1
2
type: "tags"
layout: "tags"

Then , the file will looks like:

1
2
3
4
5
6
---
title: tags
date: 2020-01-10 16:14:33
type: "tags"
layout: "tags" #add layout of 'tags'
---

While editing new posts, add tags after title, then the tags you added in the posts will be shown on the tags page.

Such as:

1
2
3
4
5
6
---
title: Hello World
tags:
- Hello World
- Test
---