Fixed the pagination on the home page

The "next" link now points to the second page. Now, it also only shows
when there are more than x total number of articles, where x is the
user-defined defined number in config.json's `home.perPage` property.