Skip to content

Commit

Permalink
fix: Include sidebar in archive page (#766)
Browse files Browse the repository at this point in the history
* fix: Include sidebar in archive page

* feat: Moved sidebar to partial blade template
  • Loading branch information
Anna authored Nov 15, 2023
1 parent c58eec3 commit 62f57f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
8 changes: 8 additions & 0 deletions views/v3/partials/navigation/sidebar-wrapper.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@if ($customizer->secondaryNavigationPosition == $position)
@if ($secondaryMenuItems)
<div class="u-margin__bottom--4 u-display--none@xs u-display--none@sm u-display--none@md">
@paper()
@includeIf('partials.navigation.sidebar', ['menuItems' => $secondaryMenuItems])
@endpaper </div>
@endif
@endif
30 changes: 10 additions & 20 deletions views/v3/templates/archive.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
@stop
@section('sidebar-left')
@if ($showSidebars)
@if ($customizer->secondaryNavigationPosition == 'left')
@if ($secondaryMenuItems)
<div class="u-margin__bottom--4 u-display--none@xs u-display--none@sm u-display--none@md">
@paper()
@includeIf('partials.navigation.sidebar', [
'menuItems' => $secondaryMenuItems,
])
@endpaper
</div>
@endif
@endif
@include('partials.navigation.sidebar-wrapper', ['position' => 'left'])
@endif
@include('partials.sidebar', [
'id' => 'left-sidebar-bottom',
'classes' => ['o-grid'],
])
@stop

@section('content')
Expand Down Expand Up @@ -117,14 +111,10 @@ class="archive s-archive s-archive-template-{{ sanitize_title($template) }} s-{

@section('sidebar-right')
@if ($showSidebars)
@if ($customizer->secondaryNavigationPosition == 'right')
@if ($secondaryMenuItems)
<div class="u-margin__bottom--4 u-display--none@xs u-display--none@sm u-display--none@md">
@paper()
@includeIf('partials.navigation.sidebar', ['menuItems' => $secondaryMenuItems])
@endpaper
</div>
@endif
@endif
@include('partials.navigation.sidebar-wrapper', ['position' => 'right'])
@endif
@includeIf('partials.sidebar', [
'id' => 'right-sidebar',
'classes' => ['o-grid'],
])
@stop

0 comments on commit 62f57f4

Please sign in to comment.