Sha256: aed4fcb6664fd8f7a1dcee41040f1d38efff1c97c59ace1f2dca278416f46d4c

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

<!-- pagination -->
{% if paginator.total_pages > 1 %}
<div class="pagination">
  {% if paginator.previous_page %}
    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">< previous</a>
  {% else %}
    <span>< previous</span>
  {% endif %}

  {% for page in (1..paginator.total_pages) %}
    {% if page == paginator.page %}
      <span class="webjeda">{{ page }}</span>
    {% elsif page == 1 %}
      <a href="/">{{ page }}</a>
    {% else %}
      <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
    {% endif %}
  {% endfor %}

  {% if paginator.next_page %}
    <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}"> next ></a>
  {% else %}
    <span>next ></span>
  {% endif %}
</div>
{% endif %}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-dash-1.0.7 _includes/pagination.html
jekyll-dash-1.0.4 _includes/pagination.html
jekyll-dash-1.0.3 _includes/pagination.html
jekyll-dash-1.0.2 _includes/pagination.html
jekyll-dash-1.0.1 _includes/pagination.html
jekyll-dash-1.0.0 _includes/pagination.html