Jekyll on Rails

Originally published at: http://www.sitepoint.com/jekyll-rails/
jekyll_on_Rails.svg

We can all appreciate the power that Ruby on Rails gives us to rapidly build great web applications. We can also appreciate Jekyll’s amazing ability to turn Markdown and templating into a beautiful static site.

What if we could combine these two? In this article, I’m going to do just that.

Why?

The most practical scenario to combine Jekyll and Rails is when you don’t want to separate your main app from your blog. You shouldn’t do this if you just want to add some dynamic-ness to your site (Middleman is better suited for this). But whatever the reason may be, let’s get started!

Step 1: The App

In the most likely scenario, you probably already have an app and you’d like to add a blog. However, for the sake of uniformity, let’s generate one for our purposes:

$ rails new jekyll-on-rails
$ cd jekyll-on-rails

Now that we’re in the app, we need to set it up for our Jekyll blog. First, we should add Jekyll to the app:

# 'Gemfile'
gem 'jekyll', '2.5.3'

# Terminal
$ bundle install

Once this command is complete, we can begin adding our blog to Jekyll.

Continue reading this article on SitePoint

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.