Tek Savant

Building a Jekyll Website. Don't know how to add RSS?

June 12, 2015 at 21:48 IST | 2 Minute Read

by Amarjeet Singh Mudhar

Lot of learning is required when you change your platform of choice. That's not what I am telling you but most people think like that. No doubt there is a learning curve attached when giving new platform a shot but you don't need to be a scientist to do that. Same is the case when starting with Jekyll and LIQUID templating system. Its different but if you are determined you can do it pretty easily. Either ways there is one key feature that every website requires to engage its viewers. And... you guessed it right, its RSS.

If you are still reading this article then you must have already created your first Jekyll website. But are you facing problems while adding RSS feed to your website or don't know how to add it at all then do read further to know how I implemented RSS in my own website in just 4 simple steps.

Procedure:

  1. Add these three variables in _config.yml file.
    • title: Tek Savant
    • description: This blog is all about the latest news and tutorials about latest software or devices you care about.
    • url: http://teksavant.com
  2. Create a feed.xml file in root directory of your project. To see the proper layout of root directory go to my website's git repository. Then add the following code in it.
  3. To add a link to website for users to subscribe I add a photo to footer of website and then linked it to feed.xml.
    But if you want, then you can place it anywhere else too.
  4. To allow browsers like safari which has inbuilt support for RSS you need to add similar code in head.html

That's it. See how simple that is! So now you have added RSS in your website. Don't forget to share your creation with us in comments down below.