Skip to content

Commit c7ef588

Browse files
Fixed breadcrumbs (#96)
* Fixed breadcrumbs Added breadcrumb chevron back in, and changed to show inside hero instead of content when one exists * Added check in case there is a hero
1 parent e1d5b1e commit c7ef588

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed
Lines changed: 3 additions & 0 deletions
Loading

assets/style/breadcrumbs.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
margin: 0;
66
padding: 0;
77
line-height: 1.3rem;
8+
color: var(--neutral-n400);
89
}
910

1011
.breadcrumbs li:not(:first-of-type) {
11-
background-image: url("/images/chevron_right.svg");
12+
background-image: url("/images/icons/svgs/chevron-right-n400.svg");
1213
background-repeat: no-repeat;
1314
padding-left: 1.625rem; /* make space for the background image */
1415
}

layouts/default.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
>
88
<%= render("/_sitehead/") %>
99
<body>
10-
<%= render("/components/header/") %> <%= render("/_nav/",
11-
:section_navigation => has_subnav?(@item) && subnav_items(@item).length > 0)
12-
%> <% if @item[:hero] %>
13-
<section class="hero"><%= render(@item[:hero]) %></section>
10+
<%= render("/components/header/") %>
11+
<%= render("/_nav/", :section_navigation => has_subnav?(@item) && subnav_items(@item).length > 0) %>
12+
13+
<% if @item[:hero] %>
14+
<section class="hero">
15+
<% if (@item.identifier != '/') %>
16+
<%= render("/components/breadcrumbs/") %>
17+
<% end %>
18+
<%= render(@item[:hero]) %>
19+
</section>
1420
<%end%>
1521

1622
<main>
@@ -29,7 +35,7 @@
2935
<% end %>
3036

3137
<section class="content">
32-
<% if (@item.identifier != '/') %>
38+
<% if (@item.identifier != '/' && !@item[:hero]) %>
3339
<%= render("/components/breadcrumbs/") %>
3440
<% end %>
3541

0 commit comments

Comments
 (0)