diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 16:52:53 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-23 16:56:55 +0300 |
commit | c8bbc25228a7d199ca6868db7375f1661c3ef6e4 (patch) | |
tree | b6b3c84795e441c05cc2d2a7fbbbfc34a492b377 /_includes/posts/paginator.html | |
parent | index.html: reuse page.title (diff) | |
download | jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.tar.gz jekyll-theme-c8bbc25228a7d199ca6868db7375f1661c3ef6e4.zip |
_includes: move everything to jekyll-theme/
Diffstat (limited to '_includes/posts/paginator.html')
-rw-r--r-- | _includes/posts/paginator.html | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/_includes/posts/paginator.html b/_includes/posts/paginator.html deleted file mode 100644 index 471383c..0000000 --- a/_includes/posts/paginator.html +++ /dev/null @@ -1,36 +0,0 @@ -{% comment %} - Page links, inspired by the example at the bottom of - https://jekyllrb.com/docs/pagination/. -{% endcomment %} -{% if site.posts.size != 0 %} - {% 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. - {% endcomment %} - {% if paginator.page == 1 %} - {% assign page1_url = page.url %} - {% else %} - {% assign page1_url = page.url | split: '/' | pop | join: '/' | append: '/' %} - {% endif %} -<ul class="pagination"> - {% if paginator.previous_page %} - <li><a href="{{ paginator.previous_page_path | relative_url }}"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li> - {% else %} - <li class="disabled"><a href="#"><span class="glyphicon glyphicon-chevron-left"></span> Prev</a></li> - {% endif %} - {% for page_number in (1..paginator.total_pages) %} - {% if page_number == paginator.page %} - <li class="active"><a href="#">{{ page_number }}</a></li> - {% elsif page_number == 1 %} - <li><a href="{{ page1_url | relative_url }}">{{ page_number }}</a></li> - {% else %} - <li><a href="{{ site.paginate_path | replace: ':num', page_number | relative_url }}">{{ page_number }}</a></li> - {% endif %} - {% endfor %} - {% if paginator.next_page %} - <li><a href="{{ paginator.next_page_path | relative_url }}">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li> - {% else %} - <li class="disabled"><a href="#">Next <span class="glyphicon glyphicon-chevron-right"></span></a></li> - {% endif %} -</ul> -{% endif %} |