make maxPosts a number
implement pagination on blog index