Written by
Sangwan Kwon
on
on
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
- Make a github repository named
{username}.github.io
- 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
- Add these 2 lines in to your
Gemfile
:gem "jekyll-remote-theme" gem "jekyll-paginate"
- Install the newly added gems:
$ bundle
- 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:
orremote_theme:
lines.
Rename
index.md
toindex.html
. Without this, thejekyll-paginate
gem will not work.In
about.md
, change thelayout:
field topost
:
Finally, push to your github :)