Added templates and extended blog.py