Transparent navbar on home page only

Hi there,

I’m looking for some help in figuring out how to make my navbar transparent for the homepage only.
Navbar and footer are partial on my layout.
I tried this :

  • Inject <%= content_for(:navbar_class, "navbar-home") %> on my home template and yield the navbar_class on my navbar template but i got an error “Tried to render a layout (calls yield) at layouts/_navbar.html.erb like it was a template. Non-default layouts need to be in source/layouts.”

Any help with that would be greatly appreciated.

Thanks.