Fixed pagination on index page

Pagination was previously not shown on the front page, this commit
resolves that by correcting the conditional which determines whether
it's shown in the index template.