Sha256: 3444b1817f1eb691d070660688ef35a5d19f2b936f5bd5e8467218798f6249a5
Contents?: true
Size: 1.7 KB
Versions: 259
Compression:
Stored size: 1.7 KB
Contents
{% 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 %}/blog/{% else %} {{ site.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="/blog/">{{ page }}</a></li> {% else %} <li><a href="{{ site.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
259 entries across 259 versions & 2 rubygems