Sha256: 548b9e6c583b6c2703b658370cf3e5d4e55a639dcadc3b7833dcc0a734061050
Contents?: true
Size: 1.79 KB
Versions: 9
Compression:
Stored size: 1.79 KB
Contents
{% assign paginate_path = include.path %} {% assign paginate_base_path = paginate_path | split: ":" %} {% if paginator.total_pages > 1 %} <div class="text-center" id="pagination_panel"> <ul class="pagination pagination-sm"> {% if paginator.previous_page %} <li><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a></li> {% else %} <li class="disabled"><a href="#">« Prev</a></li> {% endif %} {% if paginator.page_trail %} {% for trail in paginator.page_trail %} <li {% if page.url == trail.path %}class="active"{% endif %}> <a href="{% if trail.num == 1 %}{{paginate_base_path[0]}}{% else %} {{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', trail.num }}{% endif %}" title="{{trail.title}}">{{ trail.num }}</a> </li> {% endfor %} {% else %} {% for page in (1..paginator.total_pages) %} {% if page == paginator.page %} <li class="active"><a href="">{{ page }}</a></li> {% elsif page == 1 %} <li><a href="{{paginate_base_path[0]}}">{{ page }}</a></li> {% else %} <li><a href="{{ paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a></li> {% endif %} {% endfor %} {% endif %} {% if paginator.next_page %} <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a></li> {% else %} <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a></li> {% endif %} </ul> </div> {% endif %}
Version data entries
9 entries across 9 versions & 1 rubygems