Sha256: f0e613bdb2cbe3023b16f58ef4dad3afee6fd1957bc8742961e6d50c08622199

Contents?: true

Size: 1.88 KB

Versions: 37

Compression:

Stored size: 1.88 KB

Contents

{% assign paginate_path = include.path %}
{% assign paginate_base_path = paginate_path | split: ":" %}
{% if paginator.total_pages > 1 %}
<div class="row pagination-row">
    <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 class="disabled"><a href="#">&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 %}{{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 class="disabled"><a href="#">Next &raquo;</a></li>
        {% endif %}
        </ul>
    </div>
</div>
{% endif %}

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
jumbo-jekyll-theme-5.6.9.2 _includes/pagination.html
jumbo-jekyll-theme-5.6.9.1 _includes/pagination.html
jumbo-jekyll-theme-5.6.9 _includes/pagination.html
jumbo-jekyll-theme-5.6.8 _includes/pagination.html
jumbo-jekyll-theme-5.6.7 _includes/pagination.html
jumbo-jekyll-theme-5.6.6 _includes/pagination.html
jumbo-jekyll-theme-5.6.5 _includes/pagination.html
jumbo-jekyll-theme-5.6.4 _includes/pagination.html
jumbo-jekyll-theme-5.6.3 _includes/pagination.html
jumbo-jekyll-theme-5.6.2 _includes/pagination.html
jumbo-jekyll-theme-5.6.0 _includes/pagination.html
jumbo-jekyll-theme-5.5.6 _includes/pagination.html
jumbo-jekyll-theme-5.5.5 _includes/pagination.html
jumbo-jekyll-theme-5.5.4 _includes/pagination.html
jumbo-jekyll-theme-5.5.3 _includes/pagination.html
jumbo-jekyll-theme-5.5.2 _includes/pagination.html
jumbo-jekyll-theme-5.5.1 _includes/pagination.html
jumbo-jekyll-theme-5.5.0 _includes/pagination.html
jumbo-jekyll-theme-5.4.0 _includes/pagination.html
jumbo-jekyll-theme-5.3.4 _includes/pagination.html