Skip to content

Commit ca56f70

Browse files
authored
Merge pull request #59 from MITLibraries/conditional-nav-title
Display title in nav only if PLATFORM_NAME is not set
2 parents bcbe5d3 + 20c3b96 commit ca56f70

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/views/layouts/_site_nav.html.erb

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<div class="wrap-outer-header-local layout-band">
22
<div class="wrap-header-local">
3-
<div class="local-identity">
4-
<h2 class="title title-site"><a href="/">Site Title</a></h2>
5-
</div>
3+
<%= unless ENV['PLATFORM_NAME'] %>
4+
<div class="local-identity">
5+
<h2 class="title title-site"><a href="/">Site Title</a></h2>
6+
</div>
7+
<% end %>
68
<div class="wrap-local-nav">
79
<div class="wrap-bar">
810
<nav class="local-nav" aria-label="Main menu">

0 commit comments

Comments
 (0)