From 2abe8b1cd34f7140afd71cb3c9cf37184c42ce11 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 18 Oct 2016 22:53:14 -0400 Subject: [PATCH] layouts/_default/list.html: Only show pagination if necessary --- layouts/_default/list.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 78fe222..fac024c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,6 +5,7 @@ {{ .Render "summary" }} {{ end }} + {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} + {{ end }} {{ end }}