Use GitHub for Static Hosting
by Jerad Rutnam -
Creating websites for you and your projects on GitHub is very easy. Also GitHub is powered by Jekyll, which means you can also have your static blog hosted in GitHub is few clicks away!
To geeting started: of cause you should have a GitHub account. Just follow the steps below.
you can also find these steps at: https://pages.github.com/
Creating GitHub.io repository
STEP 1: Create a repository
Head over to GitHub and create a new repository named
e.g. jeradrutnam.github.io
STEP 2: Clone the repository
Go to the folder where you want to store your project, and clone the new repository
git clone https://github.com/username/username.github.io
STEP 3: Add you website files
Go to the cloned repository folder (e.g. username.github.io) and add your static/jekyll website files
When you are adding jekyll site, ignore the
_site
folder. As GitHub compiling the jekyll site on server. So it’s not necessary to add the site folder.
STEP 4: Push it
Add, commit, and push your changes
git add --all
git commit -m "Initial commit"
git push -u origin master
DONE - Check your website
To check the site, fire up a browser and go to http://username.github.io.