diff --git a/app/views/shared/_masthead.html.erb b/app/views/shared/_masthead.html.erb index d3a4a0bd0..6c23fa053 100644 --- a/app/views/shared/_masthead.html.erb +++ b/app/views/shared/_masthead.html.erb @@ -4,25 +4,15 @@ <% end %> -<%- masthead_navbar = capture do %> - <% if content_for? :masthead_navbar %> - <%= content_for :masthead_navbar %> - <% elsif current_exhibit %> - <%= render 'shared/exhibit_navbar' %> - <% else %> - <%= render 'shared/site_navbar' %> - <% end %> -<% end %> -
<% if current_masthead %> <% end %> - <%= masthead_navbar if resource_masthead? %> + <%= render current_exhibit ? 'shared/exhibit_navbar' : 'shared/site_navbar' if resource_masthead? %> <%= render Spotlight::Engine.config.spotlight.title_component.new(title: content_for(:masthead) || masthead_heading_content, subtitle: masthead_subheading_content) %> - <%= masthead_navbar unless resource_masthead? %> + <%= render current_exhibit ? 'shared/exhibit_navbar' : 'shared/site_navbar' unless resource_masthead? %>
<%= render Spotlight::BreadcrumbsComponent.new(breadcrumbs:) %>