M. Yunan Helmy, Jogja.rb #4


jekyllrb.com

Jekyll


Blog Locally In Your Favorite Editor

What is Jekyll ?

Simple Static Site Generator

Parsing Engine

Why Jekyll ?

Minimalist

Blogging like an awesome nerd

Examples




and many more ...

Another Static Site Generator ?

Ruby : Octopress, Middleman

Phyton : Pelican, Hyde

Go : Hugo

etc ...

Advantages



  • Simple
  • Fast
  • Blog-aware
  • Full Control
  • Local Development

Disadvantages



  • Everything Is Manual
  • Little Bit Scary For Code-phobia
  • Difficult Dynamic Server Side Content

Quickstart

Install



gem install jekyll

jekyll new jogjarb

jekyll s

Create New Post & Page



Simply create new file under _posts directory with format : YEAR-MONTH-DAY-title.MARKUP

or use snippet / plugin :

https://github.com/yunanhelmy/jekyll_rake_command

https://github.com/jekyll/jekyll-compose

All about post & page



  • templates
  • using markdown
  • tags
  • categories
  • highlighting
  • excerpt
  • embed gist

Publish and Deploy

to Github



  • Create Repository named username.github.io
  • Clone it (or add remote repository)
  • Commit and push
  • Your site is ready : http://username.github.io


details at https://pages.github.com/

to Heroku



  • Install Gem : rack-jekyll
  • Create configuration : config.ru
  • Create Procfile and configure your rack server (if needed)
  • Commit and push to Heroku
  • Your site is ready

Using Collection & Data

Collection



You can create new document type, not only post and page

Add collections configurations in _config.yml

Create directory with same name as your collection

Create subdirectory and create index.MARKUP

Accessible via {{ site.your_collection }}

Data



DRY

Stored your data here in _data directory using YAML

Accessible via {{ site.data.your_data }}

Plugins



Save your time with some Jekyll plugin

But not working on Github, here is the list of Jekyll plugins supported by Github

You can find available plugins at Jekyll website

That's All for today

Happy Blogging !

We are looking for a RoR developer !


details at http://www.softwareseni.co.id/careers/