Made postsPerPage configurable and fixed previousURL calculation for 3 blog posts with 2 per site