Python script for creating new Jekyll post

With Jekyll, there's a small overhead when writing a new post.

I wrote a simple Python script to handle generating the markdown file with the date and title in correct format on the filename, and the correct headers at the top of the file.

The script is in the root of the Jekyll directory for this site, so it automatically gets added when the site is built.

python create_post.py the-new-post creates a new post in _posts with this content:

---
layout: post
title: the-new-post
---

The title then needs to be corrected to be more human-readable.

You can also specify the layout by appending it to the command like this: python create_post.py the-new-post quote

Update Script now handily opens vim and jumps down to the required line