split index template into partials