fix for last commit where the homepage returns a 404

The last commit added logic to serve a 404 page when the list of posts
to print was empty. This commit fixes that problem by changing the
pipeline that the rendering goes through to serve a page.