Refactor home page to use partials