Deploy own blog with Github Page

Let’s deploy own blog with Jekyll and Remote theme.

Prerequisite

This post is based on macOS.

$ brew install ruby
$ brew link --overwrite ruby
$ gem install bundler
$ echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

# Restart Terminal

Copy blog skeleton

  1. Make a github repository named {username}.github.io
  2. Copy files and directories from tale
bitboom.github.io (master)$ ls -R
  _posts
  Gemfile
  _config.yml
  ./_pages:
    404.html  about.md  tags.html
  tale.gemspec

Follow tutorial

GitHub Pages method

  1. Add these 2 lines in to your Gemfile:
gem "jekyll-remote-theme"
gem "jekyll-paginate"
  1. Install the newly added gems:
$ bundle
  1. In _config.yml add these lines:
remote_theme: chesterhow/tale

permalink:    /:year-:month-:day/:title
paginate:     5

plugins:
 - jekyll-paginate
 - jekyll-remote-theme

Remove any other theme: or remote_theme: lines.

  1. Rename index.md to index.html. Without this, the jekyll-paginate gem will not work.

  2. In about.md, change the layout: field to post:

Finally, push to your github :)