Refactors index.slim into partials