Refactored the Home page to use separate partials for the two branches of the if-else statement.