A component for Conditional UI elements?

In general i have some elements that i need to show in homepage, like a any web page have a video demo, welcome text, suscribe form, pictures.
Theese content i dont need to show in my other sections (eg categories, threads, etc), because there are in the home page only.
I tryed to make this effect with JS but when i save my code on the “after header” that doesnt run scripts. Only run in “</ body>” and “</ hader>” elements and its impossible to change the order in the html.
For example, if i try to make this structure, its impossible:

  • header
  • search
  • video (only in the home)
  • threads
  • recomendations (only in home)
  • footer

I think that Discourse use a normal webpage in a home path domain and then use the forums in a subdomain, but it would be great to be able to customize content blocks according to the page, and use only Discourse for the entire site.

Sorry about my english :sweat_smile: and thanks for your answer!