diff options
author | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 04:53:07 +0200 |
---|---|---|
committer | Óscar Nájera <hello@oscarnajera.com> | 2018-07-15 04:53:07 +0200 |
commit | f32442d10052821726204ad95585882aa1807d77 (patch) | |
tree | ee82e418405c06d09ccd21ca32556abc61848e91 /layouts/index.html | |
parent | 562b4dda0bcf97aab6486ebcc828cb54b5434ccd (diff) | |
download | hugo-minimalist-theme-f32442d10052821726204ad95585882aa1807d77.tar.gz hugo-minimalist-theme-f32442d10052821726204ad95585882aa1807d77.tar.bz2 hugo-minimalist-theme-f32442d10052821726204ad95585882aa1807d77.zip |
starting pagination
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 172e87a..5d3350c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,8 +2,9 @@ <div id="content" class="mw7 center"> <!-- Note that .Data.Pages is the equivalent of .Site.Pages on the homepage template. --> - - {{ range where .Data.Pages "Section" "post" }} + {{ $paginator := .Paginate (where .Data.Pages "Section" "post") }} + {{ partial "pagination.html" . }} + {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} </div> |