0%

怎样使用Hexo

Welcome to Hexo! 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

0. Install npm and hexo

1
2
3
4
5
6
7
8
9
# wget https://nodejs.org/dist/v15.0.0/node-v15.0.0-linux-x64.tar.xz
# npm 7.0.2
# node v15.0.0

# cat ~/.npmrc
# registry =https://registry.npm.taobao.org

# npm install -g hexo-cli
# npm i

1. Create a new post

1
$ hexo new "My New Post"

More info: Writing

2. Generate static files

1
$ hexo generate

More info: Generating

3. Run server

1
$ hexo server

More info: Server

3. Deploy to remote sites

1
$ hexo deploy

More info: Deployment

欢迎关注我的其它发布渠道