added in blog template and pagination support