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

github.com/humrochagf/colordrop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHumberto Rocha <humrochagf@gmail.com>2019-08-02 04:47:34 +0300
committerHumberto Rocha <humrochagf@gmail.com>2019-08-02 04:47:34 +0300
commitdf71c39bda73dc59ea8583b0f9360277bd82710d (patch)
treead0062c65d1a5f08ab613a3b2c6d4c0cd8fef734 /layouts
parentbc449fc8a9bcaf1181cdb6e9472d5556e15cdff4 (diff)
Add pagination
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/taxonomy.html4
-rw-r--r--layouts/blog/list.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index efc87a8..6927292 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -7,7 +7,7 @@
{{ define "main" }}
<h1 class="text-center">Tag: {{ .Title | humanize | title }}</h1>
- {{ range .Pages }}
+ {{ range .Paginator.Pages }}
<article>
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
@@ -18,4 +18,6 @@
<hr>
{{ end }}
+
+ {{ template "_internal/pagination.html" . }}
{{ end }}
diff --git a/layouts/blog/list.html b/layouts/blog/list.html
index 3c7aa08..f83af9b 100644
--- a/layouts/blog/list.html
+++ b/layouts/blog/list.html
@@ -5,7 +5,7 @@
{{ end }}
{{ define "main" }}
- {{ range .Pages }}
+ {{ range .Paginator.Pages }}
<article>
<h1 class="title"><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
@@ -16,4 +16,6 @@
<hr>
{{ end }}
+
+ {{ template "_internal/pagination.html" . }}
{{ end }}