From 8b59adb79bab46e069b8841414e9ed4e6b2eff38 Mon Sep 17 00:00:00 2001
From: Russell Cohen <russell.r.cohen@gmail.com>
Date: Tue, 09 Jan 2018 04:03:52 +0000
Subject: [PATCH] Fix pagination (#76)

---
 layouts/_default/list.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index cf7fdb5..45ec41b 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,13 +1,13 @@
 {{ define "main" }}
   <article class="cf pa3 pa4-m pa4-l">
-    <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">                
+    <div class="measure-wide-l center f4 lh-copy nested-copy-line-height nested-links nested-img mid-gray">
       {{ .Content }}
     </div>
   </article>
   <div class="mw8 center">
-    {{ $section := where .Data.Pages "Section" .Section }}
+    {{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
     <section class="flex-ns flex-wrap justify-around mt5">
-      {{ range  $section }}
+      {{ range  $paginator.Pages }}
         <div class="relative w-100  mb4 bg-white">
           {{ partial "summary.html" . }}
         </div>

--
Gitblit v1.10.0