diff options
author | Jeremy Bise <jeremy.bise@thosegeeks.com> | 2019-04-16 18:28:29 +0300 |
---|---|---|
committer | Jeremy Bise <jeremy.bise@thosegeeks.com> | 2019-04-16 18:28:29 +0300 |
commit | d8c786f48471f9a06c9c42505c2367d4495bc277 (patch) | |
tree | f7921badfcaff9e22757d78bbaddc3c4de927dda | |
parent | 765f26d2e64fb1a9886ae928f001f6da754ca8cb (diff) |
pagination only shows if more than 1 page
-rw-r--r-- | layouts/partials/posts/post-list.html | 4 |
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 |