Deploy HEXO to Github
What is Hexo?
Hexo is a fast, simple and powerful blog framework. You write posts in Markdown (or other languages) and Hexo generates static files with a beautiful theme in seconds.
It only takes few minutes to set up Hexo.
Install Hexo with npm:
$ sudo npm install -g hexo-cli
You can verify hexo is installed correctly.
$ hexo init blog
$ cd blog
$ npm install
Generates static files.
$ hexo g
Before your first deployment, you will have to modify some settings in `_config.yml`.
$ npm install hexo-deployer-git --save
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
Generating SSH keys
SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through…help.github.com
Setting your username&email in Git
$ git config --global user.name "your name"
$ git config --global user.email "firstname.lastname@example.org"
Now, you may go~~
$ hexo d
If you just want to view your blog in local.
$ hexo s