diff options
author | Dominik Juelg <djuelg@gmx.de> | 2016-05-22 14:58:21 +0300 |
---|---|---|
committer | Dominik Juelg <djuelg@gmx.de> | 2016-05-22 14:58:21 +0300 |
commit | 92c75f7fa562825427c8ecc6d4d5bf4c66d1a4b7 (patch) | |
tree | 11832dbf86514caf278a3f9a5927db00189699a7 /layouts | |
parent | cd92f4eefcbf3d8950baa4c9730f291797b66004 (diff) |
fixed pagination bug, to apply x articles per page AND sort by date
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 12b3c31..75cfad0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -24,7 +24,7 @@ </div> {{ end }} - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "post") .Site.Params.paginate }} {{ range $paginator.Pages.ByDate.Reverse }} <div class="timeline-post"> <div class="publish-date"> |