Revised pagination and added html_safe to blog content