This is my first post. For this post, I will give an important suggestion when you use Hexo to build a blog, and some basic commands to use frequently.
First Time to Deploy
There might be a little bit trouble, if this is your first time to deploy your blog. The document is not crystal clear at this point. If you want to deploy your blog/Website on Github, Gitcafe or coding.net, please install an appropriate deployer first. Run:
1 | $ npm install hexo-deployer-git --save |
Then change the _config.yml at your hexo root folder:
1 | deploy: |
Basic Commands
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 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
For more info, please visit: Deployment