Slightly refactor some codes

Nice work, Jeff! Really love this idea to combine jekyll and Day One. I just refactored some codes to make it more Rubyish and more clear. Hope you will like it. :smile: 

btw, Will you consider make it a rubygem?