mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Russell Cohen
09.03.2018 8b59adb79bab46e069b8841414e9ed4e6b2eff38
Fix pagination (#76)

1 files modified
6 ■■■■ changed files
layouts/_default/list.html 6 ●●●● patch | view | raw | blame | history
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>