One particular day, as in today, I was feeling very unproductive. I couldn't study much of a research paper I had planned to study today and was really frustrated at myself. After talking to a fellow Master's student, who gave me the idea of starting a blog for writing technical posts, I decided to try it out.
Using blogspot.com was not an option as I read several articles detailing why it was bad. Also, I had previously used for a personal blog of mine, and there were many weird visits (bots I guess) which was skewing the traffic of the website. So I decided to go with a static generator like Jekyll and a simple hosting - Github pages (which is free of cost as well). Jekyll being a static page generator, doesn't process any PHP (cannot), which makes my website pretty secure and I don't have to worry about any PHP/database security vulnerabilities. Also, it's fast as it doesn't use any database (no database calls at every request).
I first installed Ruby using a simple Windows installer for Ruby
The next step was to install jekyll and bundler : gem install jekyll bundler
Check if jekyll is installed using : jekyll -v
I created a directory called blog: mkdir blog
Now before we proceed, I did not want to create a jekyll website from scratch. So what I did was I forked this repository: Bootstrap Clean Blog Jekyll into my github and I cloned it into my "blog" directory on local machine. I changed some important configurations by editing the _config.yml file:
Since I did not want to use the forked "BlackrockDigital" repository, I created my own repo on github. The steps were:
Uh uh uh...!!! It's still not up. Just push to your repo that you created following the steps above (don't forget to make gh-pages as the default branch) and then navigate to url/baseurl. Github will host your website.
<
Happy Coding!!!!
Placeholder text by Space Ipsum. Photographs by Unsplash.