[Home] Add the navbar to the homepage (#842)

This commit is contained in:
Cinder 2025-01-20 07:41:15 -08:00 committed by GitHub
parent 0eb02c6728
commit 1480cfb42f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View File

@ -325,4 +325,11 @@ nav.navigation, body.nav-toggled nav.navigation {
}
}
}
}
}
// Tweak for the secondary menu on desktop
body.c-static.a-home {
@include window-larger-than(800px) {
menu.nav-secondary { background: transparent; }
}
}

View File

@ -10,11 +10,7 @@
<menu class="nav-offset"></menu>
<menu class="nav-secondary <%= "empty" unless content_for(:secondary_links) %>">
<% if content_for(:secondary_links) %>
<%= yield :secondary_links %>
<% else %>
<%= subnav_link_to "Height Placeholder", "" %>
<% end %>
<%= yield :secondary_links %>
</menu>
<menu class="nav-controls">

View File

@ -5,6 +5,8 @@
</head>
<%= tag.body **body_attributes(CurrentUser.user) do %>
<%= render "layouts/theme_include" %>
<%= render "layouts/nav" %>
<% if CurrentUser.is_anonymous? %>
<%= render "static/guest_warning" %>
<% end %>