Installing and using Jekyll in five minutes.
As I’m often installing Ubuntu boxes, I needed a quick reminder to setup jekyll. This is how to get Jekyll running for Github pages in five minutes.
Installing ruby and gems
We install ruby 1.9.3 and Gems.
If you already have ruby 1.8 on your machine, your may encounter difficulties to make Jekyll work. Look at Leonard Ehrenfried’s blog for a quick fix.
This gem will help update gems with a one line command.
Generate files default structure
Et hop ! You have your new website structure.
In order to build your site the Github page way, you need the Gem. Just create a Gemfile file at the root, containing :
Install github-pages gem
You are now ready to use Jekyll.
Generating static pages
As this default site already contains a post you can already build your static site.
This will create a site folder containing all necessary files for your site.
You can now point a virtual hosts to whereourfileslives/_site and see the magic.