Sha256: 8d8f3c651b5e5fc53140e3332fed4c4857efcbfa5ede9fc567992695f565de6b

Contents?: true

Size: 1.29 KB

Versions: 12

Compression:

Stored size: 1.29 KB

Contents

{% if page.order %}
{% assign col = site.collections | where: "label", page.collection | first %}
{% if page.group %}
  {% assign docs = col.docs | where: "group", page.group %}
{% else %}
  {% assign docs = col.docs %}
{% endif %}
<nav class="pager" aria-label="Previous/Next Page">
  <ul>
    {% for p in docs %}{% assign tminus = page.order | minus: 1 %}{% if p.order == tminus %}
    <li class="pager--item previous">
      <a href="{{p.url | prepend: site.github.url }}">
        {% include_cached icon.html name="arrow-left" class="pager--item-icon" %}
        <span class="pager--item-text">
          <span class="pager--item-text-direction">Previous:</span>
          <span class="pager--item-text-target">{{p.title}}</span>
        </span>
      </a>
    </li>
    {% endif %}{% endfor %}
    {% for p in docs %}{% assign tplus = page.order | plus: 1 %}{% if p.order == tplus %}
    <li class="pager--item next">
      <a href="{{p.url | prepend: site.github.url }}">
        {% include_cached icon.html name="arrow-right" class="pager--item-icon" %}
        <span class="pager--item-text">
          <span class="pager--item-text-direction">Next:</span>
          <span class="pager--item-text-target">{{p.title}}</span>
        </span>
      </a>
    </li>
  </ul>
  {% endif %}{% endfor %}
</nav>
{% endif %}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
wai-website-theme-0.1.6 _includes/prevnext.html
wai-website-theme-0.1.5 _includes/prevnext.html
wai-website-theme-0.1.4 _includes/prevnext.html
wai-website-theme-0.1.3.1 _includes/prevnext.html
wai-website-theme-0.1.3 _includes/prevnext.html
wai-website-theme-0.1.2.7 _includes/prevnext.html
wai-website-theme-0.1.2.6 _includes/prevnext.html
wai-website-theme-0.1.2.5 _includes/prevnext.html
wai-website-theme-0.1.2.1 _includes/prevnext.html
wai-website-theme-0.1.2 _includes/prevnext.html
wai-website-theme-0.1.1 _includes/prevnext.html
wai-website-theme-0.1.0 _includes/prevnext.html