File: tutorials_contents_mobile.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 (14 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class="docs-nav-mobile unit whole show-on-mobiles">
  <select onchange="if (this.value) window.location.href=this.value">
    <option value="">Navigate the tutorials…</option>
    {% for section in site.data.tutorials -%}
    <optgroup label="{{ section.title }}">
      {% for item in section.tutorials -%}
        {% assign item_url = item | prepend:"/tutorials/" | append:"/" -%}
        {% assign tutorial = site.tutorials | where: "url", item_url | first -%}
        <option value="{{ tutorial.url | relative_url }}">{{ tutorial.title }}</option>
      {% endfor -%}
    </optgroup>
    {% endfor -%}
  </select>
</div>