Browse Source

Fix pagination (#76)

tags/v2.0
Russell Cohen 7 years ago
parent
commit
8b59adb79b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      layouts/_default/list.html

+ 3
- 3
layouts/_default/list.html View File

{{ define "main" }} {{ define "main" }}
<article class="cf pa3 pa4-m pa4-l"> <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 }} {{ .Content }}
</div> </div>
</article> </article>
<div class="mw8 center"> <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"> <section class="flex-ns flex-wrap justify-around mt5">
{{ range $section }}
{{ range $paginator.Pages }}
<div class="relative w-100 mb4 bg-white"> <div class="relative w-100 mb4 bg-white">
{{ partial "summary.html" . }} {{ partial "summary.html" . }}
</div> </div>

Loading…
Cancel
Save