Sha256: 790d5ea884ebe29216741a4524092c1f35626996333d5393363b07065faeb344
Contents?: true
Size: 1.71 KB
Versions: 5
Compression:
Stored size: 1.71 KB
Contents
{% assign pagination_path = "/authors/:num/" %} {% 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><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">« 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 %}/authors/{% else %} {{ pagination_path | 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="/authors/">{{ page }}</a></li> {% else %} <li><a href="{{ pagination_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
5 entries across 5 versions & 1 rubygems