Skip to content

Commit bf2a06c

Browse files
committed
Add the nav collections to the mobile sidebar now that we're hiding the menu in the header
1 parent b7683bd commit bf2a06c

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

public/css/components/nav/sidebar.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@
141141
}
142142
}
143143

144+
.c-nav-sidebar-categories {
145+
padding: var(--spacing-s-4) var(--spacing-m);
146+
font-family: var(--font-family-prose);
147+
font-size: var(--font-size-m);
148+
line-height: var(--font-size-m-line-height);
149+
box-shadow: var(--box-shadow-not-t-light);
150+
border-radius: var(--border-radius-s);
151+
}
152+
144153
& ul {
145154
list-style: none;
146155
display: flex;

resources/views/partials/nav_contents.antlers.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,9 @@
9595
{{ /if }} #}}
9696
{{ /nav }}
9797
{{ /if }}
98-
</ul>
98+
{{ nav:collection:sections include_home="true" }}
99+
<li class="c-nav-sidebar-categories u-hide-on-medium-screens u-hide-on-large-screens">
100+
<a wire:navigate href="{{ url }}" {{ page:section === section ?= 'class="o-current-menu-item"' }}>{{ nav_title ?? title }}</a>
101+
</li>
102+
{{ /nav:collection:sections }}
103+
</ul>

0 commit comments

Comments
 (0)