How To

Setting Up Jekyll

Jekyll is a blog-aware, static site generator in Ruby.

Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites. Think of it like a file-based CMS, without all the complexity. Jekyll takes your content, renders Markdown and Liquid templates, and spits out a complete, static website ready to be served by Apache, Nginx or another web server. Jekyll is the engine behind GitHub Pages, which you can use to host sites right from your GitHub repositories.

This post will help you to install and start your first site in Jekyll.

Installing Ruby from source

You can go ahead with this or read the text written below.

Download from here the version you want.

#untar it

tar -xvzf ruby*

cd ruby x.x.x

./configure --prefix=DIR


sudo make install

If not used –prefix option this will install Ruby into /usr/local. To change, pass the –prefix=DIR option to the ./configure script.


Install nodejs

See this for more.

sudo apt-get install nodejs


Install Bundler

sudo gem install bundler


Install Jekyll

sudo gem install jekyll


Install all dependencies

bundle install


Let’s create out first website

jekyll new hello-jekyll

cd hello-jekyll

sudo jekyll serve


Now browse to http://localhost:4000 🙂





One thought on “Setting Up Jekyll

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s