Use macro for pagination links

This commit is contained in:
Jonny Barnes 2020-02-23 17:12:17 +00:00
parent eb4f479b97
commit debbfa98d6
6 changed files with 46 additions and 28 deletions

View file

@ -82,6 +82,14 @@ main {
}
}
.pagination {
display: flex;
flex-direction: row;
justify-content: space-evenly;
width: 90vw;
list-style-type: none;
}
.personal-bio {
padding: 0 2rem;
}

View file

@ -26,18 +26,7 @@
@endforeach
</div>
<div class="paginator">
@if($prevLink)
<a href="{{ $prevLink }}">Prev</a>
@else
<a href="" class="disabled">Prev</a>
@endif
@if($nextLink)
<a href="{{ $nextLink }}">Next</a>
@else
<a href="" class="disabled">Next</a>
@endif
</div>
{{ $items->links() }}
@include('templates.bio')
@stop