aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-15 18:29:10 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-15 18:29:10 +0300
commit410fc175de59d39bbafee7136c48405020afa8bc (patch)
tree81bfad29e53f7cd8bc9af3df5417184c85596fca
parentREADME: update (diff)
downloadjekyll-theme-410fc175de59d39bbafee7136c48405020afa8bc.tar.gz
jekyll-theme-410fc175de59d39bbafee7136c48405020afa8bc.zip
paginator: add empty lines for readability
-rw-r--r--_includes/jekyll-theme/posts/paginator.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/_includes/jekyll-theme/posts/paginator.html b/_includes/jekyll-theme/posts/paginator.html
index d1d6072..1525868 100644
--- a/_includes/jekyll-theme/posts/paginator.html
+++ b/_includes/jekyll-theme/posts/paginator.html
@@ -2,9 +2,12 @@
Page links, inspired by the example at the bottom of
https://jekyllrb.com/docs/pagination/.
{% endcomment %}
+
{% if site.posts.size != 0 %}
+
{% capture prev %}<span class="glyphicon glyphicon-chevron-left"></span>&nbsp;Prev{% endcapture %}
{% capture next %}Next&nbsp;<span class="glyphicon glyphicon-chevron-right"></span>{% endcapture %}
+
{% comment %}
Link to page 1 is tricky. If site.paginate_path is used, then we cannot
simply use /. This is a silly attempt to get the proper page 1 link.
@@ -14,6 +17,7 @@
{% else %}
{% assign page1_url = page.url | split: '/' | pop | join: '/' | append: '/' %}
{% endif %}
+
<ul class="pagination">
{% if paginator.previous_page %}
<li>
@@ -49,4 +53,5 @@
</li>
{% endif %}
</ul>
+
{% endif %}