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/partials/blog.html | |
| parent | 5cc1f9b3670f06431775e026e5f9ea334e5a1e47 (diff) | |
Add pagination
Diffstat (limited to 'site/layouts/partials/blog.html')
| -rw-r--r-- | site/layouts/partials/blog.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/partials/blog.html b/site/layouts/partials/blog.html index aaa6f01..ce5c9bc 100644 --- a/site/layouts/partials/blog.html +++ b/site/layouts/partials/blog.html @@ -4,7 +4,7 @@ <h2 class="f2 b lh-title mb3">Latest stories</h1> <div class="w-100 flex-ns mhn1-ns flex-wrap mb3"> - {{ range where .Data.Pages "Type" "post" }} + {{ range first 4 (where .Data.Pages "Type" "post") }} <div class="ph1-ns w-50-ns flex"> {{ .Render "li" }} </div> |
