File: mobile-nav-items.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-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<ul>
  {% for p in site.data.primary_nav -%}
    {% if p.show_on_mobile -%}
    <li
      {%- if p.link == '/' -%}
        {%- if page.url == '/' %} class="current" {% endif -%}
      {% else -%}
        {%- if page.url contains p.link %} class="current" {% endif -%}
      {% endif -%}
    ><a href="{{ p.link | relative_url }}">{{ p.title }}</a></li>
    {% endif -%}
  {% endfor -%}
  <li><a href="{{ site.repository }}">GitHub</a></li>
</ul>