Split layout into partials, header and footer