This article will tell you how to quick setup with hexo.
$ hexo init <folder>
Once initialized, here’s what your project folder will look like:
| ├── _drafts
| └── _posts
$ hexo new "My New Post"
The will create a post named “My New Post”, and the post will be saved as
If you want to update or delete a post ,you just need to operation the “.md” file of the post.
$ hexo generate
$ hexo g
Before it starts a local server ,it is necessary to generates static files.
$ hexo server
$ hexo s
It will start a local server. By default, this is at http://localhost:4000/.
Create a new repository named username.github.io, where username is your username (or organization name) on GitHub ,such as
$ npm install hexo-deployer-git --save
Before it deploys to remote sites ,it is necessary to generates static files.
$ hexo deploy
$ hexo d
You can use the command
$ hexo d -g to deploy to remote sites ,it will automatically generates static files before deployment.