File: docs_contents.html

package info (click to toggle)
jekyll 4.4.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,488 kB
  • sloc: ruby: 16,736; javascript: 1,455; sh: 216; xml: 29; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="unit one-fifth hide-on-mobiles">
  <aside>
    {% for section in site.data.docs_nav %}
      <h4>{{ section.title }}</h4>
      <ul>
        {%- for item in section.docs -%}
          {%- assign item_page = site.docs | where: "url", item.link | first -%}
          {%- capture item_html -%}
            <a href="{{ item_page.url | relative_url }}">
              {{ item_page.menu_name | default: item_page.title }}
            </a>
          {% endcapture %}
          <li{% unless item_page.url != page.url %} class="current"{% endunless %}>{{ item_html }}</li>
        {% endfor %}
      </ul>
    {% endfor -%}
  </aside>
</div>