aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-18 22:05:39 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-18 22:05:39 +0200
commitd4a05f807d85ae715f30be09c5740f6be334ffd5 (patch)
treee369f1ad8acbf391a0733afe91bf07710b6409f2
parentpaginator: just arrows instead of words (diff)
downloadjekyll-theme-d4a05f807d85ae715f30be09c5740f6be334ffd5.tar.gz
jekyll-theme-d4a05f807d85ae715f30be09c5740f6be334ffd5.zip
paginator: hide if only 1 page
-rw-r--r--_includes/jekyll-theme/posts/paginator.html2
1 files changed, 1 insertions, 1 deletions
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 %}<span class="glyphicon glyphicon-chevron-left"></span>{% endcapture %}
{% capture next %}<span class="glyphicon glyphicon-chevron-right"></span>{% endcapture %}