Sha256: 60a198d911b37f994f1ec5058c90f70023d6bc4323a2f2a1a5939581488f5144

Contents?: true

Size: 1.37 KB

Versions: 9

Compression:

Stored size: 1.37 KB

Contents

{%- assign theme = site.data.theme.UI -%}
<!-- pagination -->
<div class="bottompagination">
    <div class="pointerup"><i class="fa fa-caret-up"></i></div>
    <span class="navigation" role="navigation"></span>
</div>
{% if paginator.total_pages > 1 %}
<div class="blog-pagination">
    {% if paginator.previous_page %}
    <a style="color:  {{theme.color}}; font-weight: 900;"
        href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">&laquo; Prev</a>
    {% else %}
    <span class="text-muted">&laquo; Prev</span>
    {% endif %}

    {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
    <span class="webjeda text-muted">{{ page }}</span>
    {% elsif page == 1 %}
    <a href="/blog" style="color:  {{theme.color}}; font-weight: 900;">{{ page }}</a>
    {% else %}
    <a style="color:  {{theme.color}}; font-weight: 900;"
        href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page
        }}</a>
    {% endif %}
    {% endfor %}

    {% if paginator.next_page %}
    <a style="color: {{theme.color}}; font-weight: 900;"
        href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next
        &raquo;</a>
    {% else %}
    <span class="text-muted">Next &raquo;</span>
    {% endif %}
</div>
{% endif %}

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
blogging-site-theme-0.1.7 _includes/pagination.html
blogging-site-theme-0.1.6 _includes/pagination.html
blogging-site-theme-0.1.5 _includes/pagination.html
blogging-site-theme-0.1.4 _includes/pagination.html
blogging-site-theme-0.1.3 _includes/pagination.html
blogging-site-theme-0.1.2 _includes/pagination.html
blogging-site-theme-0.1.1 _includes/pagination.html
blogging-site-theme-0.1 _includes/pagination.html
best-blogging-theme-0.2.1 _includes/pagination.html