Sha256: 1361f0a5bdd4f17c6bc72e5854f95e2da48afc6e7be2dc1b3c2671325d780994
Contents?: true
Size: 1.46 KB
Versions: 1
Compression:
Stored size: 1.46 KB
Contents
{%- if page.order -%} {%- assign col = site.collections | where: "label", page.collection | first -%} {%- unless col.prevnext == false -%} {%- 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 | relative_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">{% if p.nav_title %}{{p.nav_title}}{% else %}{{p.title}}{% endif %}</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 | relative_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">{% if p.nav_title %}{{p.nav_title}}{% else %}{{p.title}}{% endif %}</span> </span> </a> </li> </ul> {%- endif -%}{%- endfor -%} </nav> {%- endunless -%} {%- endif -%}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wai-website-theme-1.2 | _includes/prevnext.html |