This is the first article written by me on this blog. I will show you how I built the blog. It took me several days to practice using Hexo and GitHub Pages. It is not a easy job for me since I know little about programming. But I will share what I have done step by step with you if you are a greenhand like me and that may help you a little. At the beginning, there are two blog software for me to choose, Jekyll and Hexo. Finally, I decided to adopt Hexo.
Hexo requires Git and Node.js. For Git, I installed GitHub for Windows. Then use Git Shell to install Hexo. By the way, my OS is MS Windows 8.1. GitHub for Windows will creat a folder named
GitHub in your default
Documents folder automatically. What you should do first is to launch Git Shell. You will see these:
npm install hexo-cli -g then press Enter. Wait for the installing of Hexo. Meanwwhile I created the repository named
dqwyy.github.io on GitHub. After the installing of Hexo, I initialised Hexo in
%USERPROFILE%\Documents\GitHub\dqwyy.github.io\ by typing (exclude the
$ symbol, the same below)
I don’t like the default theme landscape so I was looking for themes. Finally I found anodyne, the present theme of my blog. I installed it by typing
then deleted the hidden
.git folder. To customize the theme, I modified
Before uploading the codes to GitHub, I used GitHub for Windows to link the local repository to remote repository, which would generate a hidden
.git folder. It is of great importance to put the codes in a branch other than
master, as for me, it’s
hexo. Everytime I change files in local repository, I type these command under the
hexo branch: (words behind
# are comments)
Deploying is going to have the blog shown on https://dqwyy.github.io, or the blog is shown on http://localhost:4000 only. Firstly, modify
Then type these on the Git Shell:
I am going to install more useful plugins in the future.
 阮一峰. Git远程操作详解. 阮一峰的网络日志. 2014-06-12. (zh-CN)
 Hexo Documentation. Hexo.
 Mu Bit. How to set up Free Blog using Hexo JS on Github. YouTube. 2016-10-01. (en)
 令狐葱. 手把手教你使用Hexo + Github Pages搭建个人独立博客. 令狐葱@前端笔记. 2016-04-15. (zh-CN)