
Github Pages + Blog framework (Ex: hexo , ghost or medium ….etc ).
Environment
|
|
1. Setup Blog Framework
There are plenty of frameworks,here I choose hexo .
-
Complete tutorial hexo
-
Normally it hosts at port 4000 http://localhost:4000/
2. Setup Github Pages
-
Be sure your repositories name follow the rule username.github.io ( subdomain )
3. Deploy Hexo to Github Pages
-
Prerequisite
-
With github pages and github repositories all well down
-
Success running Hexo in localhost
-
-
Install additional package
1npm install hexo-deployer-git --save -
Edit file _config.yml
12345deploy:type: gitrepo: <repository url>branch: [branch]message: [message] -
Generate static files for Github Pages
|
|
- Deploy
|
|
- Finish
|
|




近期评论