This site is build using Jekyll minima. The theme was modified to suit my needs.
More details on minima theme is at it's repo.
- Install
ruby+dev-kit
from ruby installer page. I installed all the packages. - Install the jekyll and bundler gems -
gem install jekyll bundler
- Clone this repo -
git clone https://github.com/mrtpk/mrtpk.github.io.git
- cd to
mrtpk.github.io
folder - Checkout
builder
branch -git checkout builder
- Update bundle -
bundle update
- Install bundle -
bundle install
- Create new Jekyll project
jekyll new project_name
- cd to
project_name
folder - Update bundle -
bundle update
- Install bundle -
bundle install
- To build the site to
_site
folder -bundle exec jekyll build
- Run website locally at
http://127.0.0.1:4000/
-bundle exec jekyll serve
- The
minima
theme will be installed locally on your system atbundle show minima
. We can copy layouts and include files and edit them to suit our needs. - To add
favicon
to jenkyll minima - Add<link rel="shortcut icon" type="image/png" href="{{ 'path to the favicon' }}">
to<head>
tag. - Since the GitHub Pages doesn't support the Jekyll plugin
jekyll-paginate-v2
I'm using, I'm uploading static pages to themaster
branch and then deploying the site. This is achieved usingpublish.sh
. The script generates static web pages from builder branch and then updates it in the master branch. - Don't forget to add
./assets/CNAME
file to the root. This is to make sure that Google domain and Github page works well.
If you have any feedback or questions, feel free to raise an issue.