Split layouts into partials