Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/djuelg/Shapez-Theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Juelg <djuelg@gmx.de>2016-05-22 14:58:21 +0300
committerDominik Juelg <djuelg@gmx.de>2016-05-22 14:58:21 +0300
commit92c75f7fa562825427c8ecc6d4d5bf4c66d1a4b7 (patch)
tree11832dbf86514caf278a3f9a5927db00189699a7 /layouts
parentcd92f4eefcbf3d8950baa4c9730f291797b66004 (diff)
fixed pagination bug, to apply x articles per page AND sort by date
Diffstat (limited to 'layouts')
-rw-r--r--layouts/index.html2
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">