If I have a page with:
@section SomeStuff { This is a section I just addered } >
@section SomeStuff { This is a section I just addered }
For a certain layout not to render certain section you need to have something like this is your layout.cshtml
@RenderSection("Somestuff", required:false)