Github Pages using Jekyll¶
Getting Started¶
Step 1 [Installation of ruby with ruby environmet manager similar to nvm]¶
- Updating package manager and installing essential tools from apt
sudo apt update
sudo apt install -y curl gpg build-essential libffi-dev libyaml-dev libssl-dev libgdbm-dev libncurses5-dev libsqlite3-dev
- Install rbenv and Ruby-build:
- Add rbenv to your shell:
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
- Install Ruby:
Step 2 [Install Bundler and Jekyll]¶
Step 3 [Create a repository]¶
- Goto to your github and create new repo with
your_user_name
as repo name.
Note : This repo considered as you profile repo, so no need to setup github workflow. Github automatically do it for you. Even though you can configured by your own as well.
-
Create file
_config.yml
-
Add these lines
title: Niraj Kumar Sah # Your user_name
logo: ./images/niraj.png # Logo image path
description: Software Engineer @Mapmyindia # Description text
show_downloads: true # Tells you download option of your page (tar| zip) format
theme: jekyll-theme-minimal # here you can choose theme of your choices
Note : Image path should be there, If not create directory
images
and put imagename.png
.
- Create a
README.md
Add Profile Information
Step 4 Configure jekyll¶
-
Create
Gemfile
-
Add the following dependencies
source "https://rubygems.org"
gem "jekyll", "~> 3.9.5"
gem "github-pages", group: :jekyll_plugins
gem "webrick" # Add this line
Step 5 [Build and deploy]¶
- Install related dependencies
- Build and serve
You have successfulluy serve your profile page at https://localhost:4000