Now that I have everything setup how I like it, it seems like a good opportunity to write a post about my experiences with Jekyll!
For years now I have wanted a simple blog that I can understand and hack away at! The ideal blogging solution to me is one where I can write posts as text files on my hard drive in Markdown.
It turns out this is exactly what Jekyll is all about, and github supports hosting jekyll powered sites!
Setting it up was surprisingly easy, I just created a new repo on github, and followed jekyll’s documentation! Jekyll creates a directory tree that looks like:
.
├── _config.yml
├── _drafts
├── _includes
├── _layouts
├── _posts
├── _site
└── index.html
You put your markdown files in the _posts folder and push to github and it magics it into a site :)
From here I made a few small changes to set it up how I liked, you can see the soure of my blog here.

I also wrote a few small scripts for posting:

mkpost

#!/bin/bash
if [[ $BASH_ARGC != 1 ]]; then 
    echo "Usage: mkpost filename"; exit -1
fi

file="`date +%F`-$@.md"
cp /usr/local/share/blog/header $file
vim $file

blog

#!/bin/bash
if [[ $BASH_ARGC != 1 ]]; then
    echo "Usage: blog \"commit message\""; exit -1
fi

cd /home/mio/Blog
git add *
file=`git commit -m "$@" | grep create | cut -sf 5 -d " " | 
        sed -En 's/_posts\/(.+)/\1/p'` 
category=`cat _posts/$file | head -n 4 | tail -n 1 | cut -sf 2 -d " "`
year=`echo $file | cut -sf 1 -d "-"`
month=`echo $file | cut -sf 2 -d "-"`
day=`echo $file | cut -sf 3 -d "-"`
title=`echo $file | sed -En 's/[0-9]{4}-[0-9]{2}-[0-9]{2}-(.+)\.md/\1/p'`
url="miotatsu.github.io/$category/$year/$month/$day/$title"
tweet="New $category blog post: $url"
git push
echo $tweet | bti

I used bti for the twitter integration.

Overall I am enjoying this setup a lot, it wasn’t too hard to setup and it’s fun to hack away at!
Hopefully everything works well :)