Welcome to Jekyll!

30 Jun 2013

Static HTML and Blog aware ruby framework Jekyll is really awesome and useful. You can migrate your blog side with Jekyll and upload to GitHub Pages.

Steps to start and run your static pages blog site to localhost.

  1. Download and install, On Max OS X, Open Terminal and run following command.
	sudo gem install jekyll
	
  1. Now create new website/blog site with jekyll, this command will create a defined folder structure.
	jekyll new myblog.github.com
	
  1. You can add/update posts and start jekyll,
	jekyll serve
	
  1. Now browse to http://localhost:4000 and see your site locally.

  2. When you add or update any thing on site contents, you just need to build jekyll and change will reflect on browser.

	jekyll build
	

You’ll find this post in your _posts directory - edit this post and re-build (or run with the -w switch) to see your changes! To add new posts, simply add a file in the _posts directory that follows the convention: YYYY-MM-DD-name-of-post.ext.

Jekyll also offers powerful support for code snippets:

def print_hi(name)
  puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.

Check out the Jekyll docs for more info on how to get the most out of Jekyll. File all bugs/feature requests at Jekyll’s GitHub repo.