Skip to content

Commit

Permalink
Create _subpages.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Mar 16, 2021
1 parent 0d3c553 commit efe35b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/views/public/_subpages.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@if ($subpages = $page->getSubMenu() and !empty($subpages))
<ul class="page-header-subpages">
@foreach ($subpages as $subpage)
<li><a class="page-header-subpages-link {{ $page->id === $subpage->id ? 'page-header-subpages-link-active' : '' }}" href="{{ url($subpage->uri()) }}">{{ $subpage->title }}</a></li>
@endforeach
</ul>
@endif

0 comments on commit efe35b7

Please sign in to comment.