Setup Hexo Blog

新買了一個域名,但暫時還沒打算買國外服務器(AliCloud學生機 + 不想備案)。

所以暫時使用 Github Pages,把 Blog 放出來,用了 Cloudflare 中轉做 HTTPS。

Preparation

These Software Should be installed on your computer:

  • Node.js

  • Git

Install Hexo and setup

1
2
3
$ npm install -g hexo-cli
$ hexo init
$ npm install

And you should edit configuraion file _config.yml on main folder.

Some common command in Hexo

1
2
3
4
5
$ hexo clean
$ hexo g
$ hexo s
$ hexo d
$ hexo new "My New Post"

More info: Generating

More info: Server

More info: Deployment

More info: Writing

(Optional) Use Cloudflare to enable HTTPS

0%