Split index into layout and partials