File: tutorials_contents_mobile.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 (14 lines) | stat: -rw-r--r-- 666 bytes parent folder | download
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 id="tutorial-nav" onchange="navigateToUrl(this)" aria-label="Select a tutorial">
    <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>