diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2018-02-22 15:30:13 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2018-02-22 15:30:13 +0300 |
commit | ebd6bc6c3d0994825b4192afaa24a80091547c71 (patch) | |
tree | 82ffc3b4877f1d4fbe98fb27fd029b0ae1363993 /_includes/common/pagination.html | |
parent | _layouts: sidebar.html -> default.html (diff) | |
download | sorting-algorithms-ebd6bc6c3d0994825b4192afaa24a80091547c71.tar.gz sorting-algorithms-ebd6bc6c3d0994825b4192afaa24a80091547c71.zip |
_includes: pagination.html -> paginator.html
Diffstat (limited to '_includes/common/pagination.html')
-rw-r--r-- | _includes/common/pagination.html | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/_includes/common/pagination.html b/_includes/common/pagination.html deleted file mode 100644 index 55cb690..0000000 --- a/_includes/common/pagination.html +++ /dev/null @@ -1,23 +0,0 @@ -{% if site.posts.size != 0 %} -<ul class="pagination"> - {% if paginator.previous_page %} - <li><a href="{{ site.baseurl }}{{ paginator.previous_page_path }}"><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="{{ site.baseurl }}/posts/">{{ page_number }}</a></li> - {% else %} - <li><a href="{{ site.baseurl }}{{ site.paginate_path | replace: ':num', page_number }}">{{ page_number }}</a></li> - {% endif %} - {% endfor %} - {% if paginator.next_page %} - <li><a href="{{ site.baseurl }}{{ paginator.next_page_path }}">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 %} |