Sha256: fe2f6df25758ea2fbeb949964fe9c5dc4d5a0fb22da88939b15accc390d03186

Contents?: true

Size: 1.72 KB

Versions: 259

Compression:

Stored size: 1.72 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 %}/authors/{% else %}
              {{ site.paginate_path_authors | 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="/authors/">{{ page }}</a></li>
              {% else %}
                <li><a href="{{ site.paginate_path_authors | 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

259 entries across 259 versions & 2 rubygems

Version Path
jumbo-jekyll-theme-3.9.4 _includes/pagination-authors.html
jumbo-jekyll-theme-3.9.3 _includes/pagination-authors.html
jumbo-jekyll-theme-3.9.2 _includes/pagination-authors.html
jumbo-jekyll-theme-3.9.1 _includes/pagination-authors.html
jumbo-jekyll-theme-3.9.0 _includes/pagination-authors.html
jumbo-jekyll-theme-3.8.3 _includes/pagination-authors.html
jumbo-jekyll-theme-3.8.2 _includes/pagination-authors.html
jumbo-jekyll-theme-3.8.1 _includes/pagination-authors.html
jumbo-jekyll-theme-3.8.0 _includes/pagination-authors.html
jumbo-jekyll-theme-3.7.0 _includes/pagination-authors.html
jumbo-jekyll-theme-3.6.4 _includes/pagination-authors.html
jumbo-jekyll-theme-3.6.3 _includes/pagination-authors.html
jumbo-jekyll-theme-3.6.2 _includes/pagination-authors.html
jumbo-jekyll-theme-3.6.1 _includes/pagination-authors.html
jumbo-jekyll-theme-3.6.0 _includes/pagination-authors.html
jumbo-jekyll-theme-3.5.6 _includes/pagination-authors.html
jumbo-jekyll-theme-3.5.5 _includes/pagination-authors.html
jumbo-jekyll-theme-3.5.4 _includes/pagination-authors.html
jumbo-jekyll-theme-3.5.3 _includes/pagination-authors.html
jumbo-jekyll-theme-3.5.2 _includes/pagination-authors.html