Easy Way To Create A Blog

Github Pages + Blog framework (Ex: hexo , ghost or medium ….etc ).

Environment

1
Mac OS X EI Capitan

1. Setup Blog Framework

There are plenty of frameworks,here I choose hexo .

2. Setup Github Pages

  • Complete tutorial

  • 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

    1
    npm install hexo-deployer-git --save
  • Edit file _config.yml

    1
    2
    3
    4
    5
    deploy:
    type: git
    repo: <repository url>
    branch: [branch]
    message: [message]
  • Generate static files for Github Pages

1
hexo generate
  • Deploy
1
hexo deploy
  • Finish
1
https://yourGitHubName.github.io/