File: step-index.html

package info (click to toggle)
jekyll 4.3.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,356 kB
  • sloc: ruby: 16,765; javascript: 1,455; sh: 214; xml: 29; makefile: 9
file content (34 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{% assign docs = site.docs | where_exp: "doc", "doc.url contains '/step-by-step/'" -%}

{% for doc in docs -%}
  {% if doc.url == page.url -%}
    <div class="section-nav">
      <div class="left align-right">
        {% if forloop.first -%}
          <span class="prev disabled">Back</span>
        {% else -%}
          {% assign previous = forloop.index0 | minus: 1 -%}
          <a href="{{ docs[previous].url }}" class="prev">Back</a>
        {% endif -%}
      </div>
      <div class="right align-left">
      {% if forloop.last -%}
        <span class="next disabled">Next</span>
      {% else -%}
        {% assign next = forloop.index0 | plus: 1 -%}
        <a href="{{ docs[next].url }}" class="next">Next</a>
      {% endif -%}
      </div>
    </div>
    <div class="clear"></div>
    {% break -%}
  {% endif -%}
{% endfor -%}

<ol class="step-nav">
  {% for step in docs -%}
  <li {%- if step.url == page.url %} class="current"{% endif %}><a href="{{ step.url }}">
    {{- step.title -}}
  </a></li>
  {% endfor -%}
</ol>