From 18efd27277e085ad14a064e474d7e1974e1804aa Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Apr 2022 18:14:17 +0300 Subject: paginator: refactoring --- _includes/jekyll-theme/posts/paginator.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/_includes/jekyll-theme/posts/paginator.html b/_includes/jekyll-theme/posts/paginator.html index 341687c..268d8fd 100644 --- a/_includes/jekyll-theme/posts/paginator.html +++ b/_includes/jekyll-theme/posts/paginator.html @@ -3,6 +3,8 @@ 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. @@ -15,11 +17,11 @@ -- cgit v1.2.3