diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-18 22:05:39 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-18 22:05:39 +0200 |
commit | d4a05f807d85ae715f30be09c5740f6be334ffd5 (patch) | |
tree | e369f1ad8acbf391a0733afe91bf07710b6409f2 /_includes/jekyll-theme/posts/paginator.html | |
parent | paginator: just arrows instead of words (diff) | |
download | jekyll-theme-d4a05f807d85ae715f30be09c5740f6be334ffd5.tar.gz jekyll-theme-d4a05f807d85ae715f30be09c5740f6be334ffd5.zip |
paginator: hide if only 1 page
Diffstat (limited to '')
-rw-r--r-- | _includes/jekyll-theme/posts/paginator.html | 2 |
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 %} |