iBeck on Jekyll
Half the fun of having a blog is migrating to new technologies. Today, I made the move from Wordpress to Jekyll because jekyll leverages git, ruby, sass and other open-source technologies.
Best of all I can write my web pages in a markdown language (kramdown actually) using my programming editor, Textmate. I can even display fancy source code snippets:
Timecop.freeze(10.years.ago)
apple = Investment.new(10000)If only that worked in real life.
Installing was easy
Read the Jekyll Documentation – it’s beautiful.
- I have a Mac, so I already have
rubyinstalled. gem install jekylldownloads the code to run locallyjekyll new ibeckcreated my newibeckweb folder with sample filesjekyll build --watchcompiles my pages as I save themjekyll servestarts a local web sever athttp://localhost:4000to preview the site
Enter a few simple settings in _config.yml:
title: iBeck.com
email: chris@ibeck.com
description: Ruminations on technology, faith, sports, food and life. Did I miss anything?
twitter_username: ccmcbeck
github_username: ccmcbeck
markdown: kramdownAnd I’m ready to start blogging!
Editing is fun
Just modify the sample post in the _posts folder and follow the Jekyll Guide on Posts. Here is what the previous sentence looks like coded in kramdown:
Just modify the sample post in `_posts` using `kramdown` following
the [Jekyll Guide on Posts](http://jekyllrb.com/docs/posts/).No HTML. No muss. No fuss. jekyll compiles everything into your _site folder which is thoughtfully included in your default .gitignore.
Deploying was easy
There are lots of ways to deploy a Jekyll site:
If you don’t have a server follow this recipe:
gem install s3_websiteto be able to deploy directly to S3s3_website cfg createto generate ans3_website.yml- Enter your
s3_id,s3_secret,s3_bucketintos3_website.yml
- Enter your
s3_website cfg applyto connect to your S3 buckets3_website cfg pushto transmit your pages to S3
If you have a server follow this recipe:
rsync --compress --recursive --checksum --delete _site/ user@ibeck.com:/public_htmlWhat’s next?
- Port my other Wordpress blog posts to Jekyll
- Embed the cool Disqus commenting engine
- Design my own custom theme using Twitter Bootstrap
- Integrate my fancy Directra contact us gadget