Fix a bug in blog.
Refactor and make post page work properly.