Refactors home page.

Separate partials for the two branches of the if-else statement