Hexo mini tutorial

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 hexo project

1
2
3
4
$ hexo init project_name
$ cd project_name
$ npm install
$ npm install hexo-deployer-git --save

add to the _config.xml file :

1
2
3
4
deploy:
type: git
repo: <repo url>
branch: master

If you want a custom domain name, add your CNAME to the source folder and add either to your DNS an ALIAS or A value

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
2
$ hexo clean
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

  • Copyrights © 2019-2020 Yohann Belair
  • Visitors: | Views:

Buy me a cup of coffee~

支付宝
微信