Updated post rendering
Changed the logic for grabbing posts to use a pagination object