A simple way to build Github Pages by Jekyll.
e.g.
username = ihuixu
1.new folder.
mkdir ihuixu.github.io
cd ihuixu.github.io
2.new jekyll program.
sudo gem install jekyll bundler
jekyll new .
3.git push
git init
git commit -m "first commit"
git remote add origin https://github.com/ihuixu/ihuixu.github.io.git
git push -u origin master
ps
1.How to start server in local.
bundle install
bundle exec jekyll serve
2.How to change the theme of the site.
vi Gemfile
gem 'themename'
vi _config.yml
theme: themename
3.You may check the ruby’s version, and install bundler again.
ruby -v
rvm install ruby-2.2.2
gem install jekyll bundler
bundle install