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

github.com/ExchangeRate-API/strange-case.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeeraya Pupatwibul <veeraya.pupat@gmail.com>2017-12-03 11:10:49 +0300
committerVeeraya Pupatwibul <veeraya.pupat@gmail.com>2017-12-03 11:10:49 +0300
commit5a751b964e7f324fad872a16df8b2738632cd890 (patch)
treeba6fab81688281ebfde7502e73dc8459598eee3b
parent9250deaf6a64949451b44b376d546ed11b9a1684 (diff)
Added support for pagination
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/index.html6
2 files changed, 10 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 536ada3..461fef5 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -9,7 +9,7 @@
</div>
<div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content">
- {{ range first 10 .Data.Pages }}
+ {{ range .Paginator.Pages }}
<div class="post">
<div class="post-heading">
@@ -22,6 +22,10 @@
</div>
{{ end }}
+ <div class="text-center">
+ {{ template "_internal/pagination.html" . }}
+ </div>
+
</div>
<div class="col-sm-1 col-md-3 col-md-4">
</div>
diff --git a/layouts/index.html b/layouts/index.html
index 536ada3..461fef5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -9,7 +9,7 @@
</div>
<div class="col-sm-7 col-sm-offset-4 col-md-6 col-md-offset-3 col-lg-5 col-lg-offset-3 content">
- {{ range first 10 .Data.Pages }}
+ {{ range .Paginator.Pages }}
<div class="post">
<div class="post-heading">
@@ -22,6 +22,10 @@
</div>
{{ end }}
+ <div class="text-center">
+ {{ template "_internal/pagination.html" . }}
+ </div>
+
</div>
<div class="col-sm-1 col-md-3 col-md-4">
</div>