- This is the repo for my Jekyll blog, hyrtsi.github.io
- It's deployed from
docs/
directory ofmaster
branch
Developed and tested using Ubuntu 20.04. The github pages are updated automatically upon each commit so these steps are only for local testing.
- Install dependencies
- Ruby
- Jekyll
- Bundler
sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
ruby -v
to check your current version. I use 2.7.0p0
Install jekyll and bundler:
sudo gem install jekyll bundler
gem -v
, I use 3.1.2
- Clone this repo
cd docs
jekyll new --skip-bundle .
sudo nano Gemfile
, check that everything is OK like explained herebundle install
bundle exec jekyll serve
- Test by opening
http://127.0.0.1:4000/
on your browser
- Testing Github pages locally
- Jekyll
- Ruby
- Creating Github pages with Jekyll
- Static site generators
- Gh pages + Jekyll main
If there are problems, verify your Ruby, RubyGem, Bundler and Jekyll installations.