summaryrefslogtreecommitdiff
path: root/source/index.blade.php
blob: 998f56a53ce3a6bc28f225b9e738c312c7a3a308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
pagination:
  collection: posts
---
@extends('_layouts.master')

@section('article')
    <ol>
        @foreach ($pagination->items as $post)
            <li><a href="{{ $post->getUrl() }}">{{$post->title }}</a></li> 
        @endforeach
    </ol>
    <nav>
        @if ($pagination->previous)
            <a href="{{ $pagination->previous }}">See more recent posts</a>
        @endif
        @if ($pagination->next)
            <a href="{{ $pagination->next }}">See older posts</a>
        @endif
    </nav>
@endsection