Sha256: e128e2337adaca2670d40793a395c63af6b1315fbc9cc278420d1c379191cbb4
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
{% if page.categories %} {% assign currentCat = page.categories[0] %} {% assign links = site.docs | sort: 'order' | where: 'category', currentCat %} {% endif %} {% for link in links %} {% if link.title == page.title %} {% unless forloop.first %} {% assign prev = tmpprev %} {% endunless %} {% unless forloop.last %} {% assign next = links[forloop.index] %} {% endunless %} {% endif %} {% assign tmpprev = link %} {% endfor %} <nav class="docs__pagination"> {% if prev %} <a class="docs__pagination-item docs__pagination-item--prev" href="{{ prev.url}}" title="{{ prev.title }}"> {{ prev.title }} </a> {% endif %} {% if next %} <a class="docs__pagination-item docs__pagination-item--next" href="{{ next.url}}"> {{ next.title }} </a> {% endif %} </nav>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bytewax-docs-0.1.1 | _includes/docs/pagination.html |
bytewax-docs-0.1.0 | _includes/docs/pagination.html |