Hexo tutorial

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

OR

1
$ hexo s

More info: Server

Generate static files

1
$ hexo generate

OR

1
$ hexo g

More info: Generating

Deploy to remote sites

1
$ hexo deploy

OR

1
$ hexo d

Generate Categories

1
$ hexo new page categories

Then open source/categories/index.md, Add type: "categories"

1
2
3
4
5
6
---
title: categories
date: 2019-03-09 13:31:42
type: "categories"
comments: false
---

Generate Tags

1
$ hexo new page tags

Then open source/tags/index.md, Add type: "tags"

1
2
3
4
5
6
---
title: categories
date: 2019-03-09 13:31:42
type: "tags"
comments: false
---

Using tags or categories

Adding categories or tags description on page title

1
2
3
4
5
6
---
title: Hexo tutorial
tag: [Hexo,Tutorial]
categories:
- Web
---

Clean caches and regenerated

1
2
$ hexo clean
$ hexo g

More info: Deployment