This very first blog article introduces how to deploy Hexo with Github. For detailed information about Hexo, see the official document page.
Installing Nodejs
|
|
Installing npm and Hexo
|
|
After the installation of Hexo, create a blog
folder under the home
directory.
|
|
Check how the page looks like by running the command below and then open the generated link in a web browser.
|
|
Setting up Hexo themes
My preferred theme was downloaded from below:
|
|
More settings about the NexT theme can be found here.
Configuring Github and Hexo
- Create a new repository on Github and name it to be
YangboLong.github.io
Generate a new SSH key:
1$ ssh-keygen -t rsa -C "your_email@example.com"Add the SSH key to your Github account: add key
- Edit
_config.yml
in the directory of~/blog
- Run the following command:1$ sudo npm install hexo-deployer-git --save
Setting up deployment
|
|
Now, my first blog is up and running. Enjoy!