First, I started by creating main.ejs, which is a layout page. The only component I added on main.ejs is a brand menu right block. In the code, it also has the normal doctype, html, head, and body tags.
Next, I created register.ejs, which is a content page and the layout is main.ejs. After that, I started adding components to the register.ejs page. Register.ejs does not have the normal doctype, head, body tags, etc.
I noticed, every time I create a new content page with main.ejs as the layout, this is the only code that shows up:
When I create a new content page without a layout, I get the normal doctype, html, head, body layout