Sha256: 7ca0462a75aa6872216f687d568c3dfb4a0d2019ca3d98e81c87928169f3e290

Contents?: true

Size: 1.71 KB

Versions: 218

Compression:

Stored size: 1.71 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: '//', '/' }}">&laquo; Prev</a></li>
      {% else %}
       <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; 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 &raquo;</a></li>
      {% else %}
         <li><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next &raquo;</a></li>
      {% endif %}
    </ul>
</div>
{% endif %}

Version data entries

218 entries across 218 versions & 2 rubygems

Version Path
jumbo-jekyll-theme-1.4.18 _includes/pagination.html
jumbo-jekyll-theme-1.4.17 _includes/pagination.html
jumbo-jekyll-theme-1.4.16 _includes/pagination.html
jumbo-jekyll-theme-1.4.15 _includes/pagination.html
jumbo-jekyll-theme-1.4.14 _includes/pagination.html
jumbo-jekyll-theme-1.4.13 _includes/pagination.html
jumbo-jekyll-theme-1.4.12 _includes/pagination.html
jumbo-jekyll-theme-1.4.11 _includes/pagination.html
jumbo-jekyll-theme-1.4.10 _includes/pagination.html
jumbo-jekyll-theme-1.4.9 _includes/pagination.html
jumbo-jekyll-theme-1.4.8 _includes/pagination.html
jumbo-jekyll-theme-1.4.7 _includes/pagination.html
jumbo-jekyll-theme-1.4.6 _includes/pagination.html
jumbo-jekyll-theme-1.4.5.1 _includes/pagination.html
jumbo-jekyll-theme-1.4.5 _includes/pagination.html
jumbo-jekyll-theme-1.4.4 _includes/pagination.html
jumbo-jekyll-theme-1.4.3.65 _includes/pagination.html
jumbo-jekyll-theme-1.4.3.64 _includes/pagination.html
jumbo-jekyll-theme-1.4.3.63 _includes/pagination.html
jumbo-jekyll-theme-1.4.3.62 _includes/pagination.html