How to setup github pages?

How to setup github pages?

This is my first post on my new Jekyll-powered website.

In this post, we will look at the steps to create a website using github pages. The github pages has its limitations too. It can only serve static sites. But, for a portfolio website, this is more than enough. Blogging can also be done using the github’s comments feature.

Github uses jekyll, which is a static site generator for this.

So, let us get into it

Steps

  1. Create a repository like username.github.io and make the default branch as main
  2. install jekyll, blunder
  3. Follow below cli
git clone git@github.com:username/username.github.io.git
sudo apt install jekyll

cd username.github.io
jekyll new .

git add .
git commit -m "hello github pages"
git push origin main

And, then, goto https://username.github.io, thats it!

How to add comments to the static site? Using Github discussion API and giscus-app, Follow the below tutorial

Hope, you could set it up too :) Stay tuned for more!