Sha256: 1c54e8e7b2773086fb1ff688637b70a644be08dafdc761bb19bd0bc9aea57be9

Contents?: true

Size: 843 Bytes

Versions: 9

Compression:

Stored size: 843 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

9 entries across 9 versions & 1 rubygems

Version Path
jekyll-dash-1.1.3 _includes/pagination.html
jekyll-dash-1.1.2 _includes/pagination.html
jekyll-dash-1.1.1 _includes/pagination.html
jekyll-dash-1.1.0 _includes/pagination.html
jekyll-dash-1.0.12 _includes/pagination.html
jekyll-dash-1.0.11 _includes/pagination.html
jekyll-dash-1.0.10 _includes/pagination.html
jekyll-dash-1.0.9 _includes/pagination.html
jekyll-dash-1.0.8 _includes/pagination.html