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

github.com/jeremybise/twentynineteen-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-16 18:28:29 +0300
committerJeremy Bise <jeremy.bise@thosegeeks.com>2019-04-16 18:28:29 +0300
commitd8c786f48471f9a06c9c42505c2367d4495bc277 (patch)
treef7921badfcaff9e22757d78bbaddc3c4de927dda
parent765f26d2e64fb1a9886ae928f001f6da754ca8cb (diff)
pagination only shows if more than 1 page
-rw-r--r--layouts/partials/posts/post-list.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/posts/post-list.html b/layouts/partials/posts/post-list.html
index b079894..7b781f4 100644
--- a/layouts/partials/posts/post-list.html
+++ b/layouts/partials/posts/post-list.html
@@ -26,6 +26,7 @@
</article>
{{ end }}
+{{ if gt $paginator.TotalPages 1 }}
<nav class="navigation pagination" role="navigation">
<h2 class="screen-reader-text">Posts navigation</h2>
<div class="nav-links">
@@ -51,4 +52,5 @@
</a>
{{ end }}
</div>
-</nav> \ No newline at end of file
+</nav>
+{{ end }} \ No newline at end of file