diff options
| author | MadeByMike <mike@madebymike.com.au> | 2018-01-01 23:16:20 +1100 |
|---|---|---|
| committer | Shawn Erquhart <shawn@erquh.art> | 2018-01-09 17:40:17 -0500 |
| commit | 188bbd972def17bb2a03ae3da0f3e3e07192c44e (patch) | |
| tree | f6928c60f946573a649efca795a6f8c570099e1f /site/layouts/_default | |
| parent | 5cc1f9b3670f06431775e026e5f9ea334e5a1e47 (diff) | |
Add pagination
Diffstat (limited to 'site/layouts/_default')
| -rw-r--r-- | site/layouts/_default/list.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/site/layouts/_default/list.html b/site/layouts/_default/list.html index c23fa0c..81ce590 100644 --- a/site/layouts/_default/list.html +++ b/site/layouts/_default/list.html @@ -4,12 +4,13 @@ <div class="mw7 center"> <ul class="flex-ns flex-wrap mhn1-ns pa3"> - {{ range .Data.Pages }} + {{ range (.Paginator 4).Pages.ByPublishDate }} <div class="w-50-ns ph1-ns flex"> {{ .Render "li"}} </div> {{ end }} </ul> + {{ partial "pagination" . }} </div> {{end}}
\ No newline at end of file |
