From 60a5e2e708dd4b1663b2a96ca4377c4c852a92db Mon Sep 17 00:00:00 2001
From: budparr <budparr@gmail.com>
Date: Mon, 09 Apr 2018 14:14:03 +0000
Subject: [PATCH] Use default flex layout for lists

---
 layouts/_default/list.html |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 45ec41b..7e73dfc 100755
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -1,18 +1,15 @@
 {{ 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">
-      {{ .Content }}
-    </div>
-  </article>
-  <div class="mw8 center">
-    {{ $paginator := .Paginate (where .Data.Pages "Section" .Section) }}
+  <article class="pa3 pa4-ns nested-copy-line-height nested-img">
+  <main class="cf ph3 ph5-l pv3 pv4-l f4 tc-l center measure-wide lh-copy mid-gray">
+    {{- .Content -}}
+  </main>
     <section class="flex-ns flex-wrap justify-around mt5">
-      {{ range  $paginator.Pages }}
-        <div class="relative w-100  mb4 bg-white">
-          {{ partial "summary.html" . }}
+      {{ range .Paginator.Pages }}
+        <div class="relative w-100 w-30-l mb4 bg-white">
+          {{- partial "summary.html" . -}}
         </div>
       {{ end }}
     </section>
-  {{ template "_internal/pagination.html" . }}
-  </div>
+    {{- template "_internal/pagination.html" . -}}
+  </article>
 {{ end }}

--
Gitblit v1.10.0