Issues with rendering the "main" content block when using layout template

I have unmarked your “solution” since due to its application, you have encountered further problems and opened another support ticket while this one actually remains unsolved.

As I wrote in the other topic:

You really need to share a repo of your project.
If you cannot share it then create a repo with dummy content, that reproduces the original problem.