Ver código fonte

Fix pagination (#76)

tags/v2.0
Russell Cohen 7 anos atrás
pai
commit
8b59adb79b
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3
    3
      layouts/_default/list.html

+ 3
- 3
layouts/_default/list.html Ver arquivo

@@ -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>

Carregando…
Cancelar
Salvar