From d4a05f807d85ae715f30be09c5740f6be334ffd5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Apr 2022 22:05:39 +0200 Subject: paginator: hide if only 1 page --- _includes/jekyll-theme/posts/paginator.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/jekyll-theme/posts/paginator.html b/_includes/jekyll-theme/posts/paginator.html index 257a307..597e2c6 100644 --- a/_includes/jekyll-theme/posts/paginator.html +++ b/_includes/jekyll-theme/posts/paginator.html @@ -3,7 +3,7 @@ https://jekyllrb.com/docs/pagination/. {% endcomment %} -{% if site.posts.size != 0 %} +{% if paginator.total_pages > 1 %} {% capture prev %}{% endcapture %} {% capture next %}{% endcapture %} -- cgit v1.2.3