Instead of writing your own blogging engine, I would suggest using one of the many extensible blogging platforms as a base and building from there.
I personally have become a huge fan of statically-generated blogs (using Jekyll[1] for Ruby or Hyde[2] for Python) as they integrate great with version control and require little maintenance. Another benefit is speed, as nginx serves static content with ease.