Add generate HTML function to Blog.