Skip to content

Commit c36cfec

Browse files
committed
remove test span, set h2 specifically for home page
1 parent dde0dc0 commit c36cfec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/views/layouts/blacklight/base.html.erb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@
4646
<div class="ucb_container">
4747
<%= render partial: 'shared/header_navbar' %>
4848
<main id="main-container" class="<%= container_classes %>" role="main" aria-label="<%= t('blacklight.main.aria.main_container') %>">
49-
<span class="constraints-label sr-only visually-hidden"><%= t('blacklight.search.filters.title') %></span>
50-
<%= content_for(:container_header) || content_tag(:div, class: "sr-only visually-hidden-focusable") do
51-
content_tag(:h1, "Main Content") +
52-
content_tag(:h2, "Section Content")
49+
<%= content_for(:container_header) || content_tag(:div, class: "sr-only visually-hidden") do
50+
if render_page_title == "UC Berkeley GeoData"
51+
content_tag(:h1, render_page_title) + content_tag(:h2, render_page_title + " Categories")
52+
else
53+
content_tag(:h1, render_page_title)
54+
end
5355
end %>
5456
<%= render partial: 'shared/flash_msg', layout: 'shared/flash_messages' %>
5557

0 commit comments

Comments
 (0)