Fixing day template to properly handle the pagination.