From 410fc175de59d39bbafee7136c48405020afa8bc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Apr 2022 18:29:10 +0300 Subject: paginator: add empty lines for readability --- _includes/jekyll-theme/posts/paginator.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to '_includes') 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 %} Prev{% endcapture %} {% capture next %}Next {% 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 %} + + {% endif %} -- cgit v1.2.3