Files
jekyll/docs/_includes/mobile-nav-items.html
Ashwin Maroli 68066ce268 Optimize rendering of the documentation site (#8020)
Merge pull request 8020
2020-02-24 18:44:11 -05:00

15 lines
431 B
HTML

<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 }}">{{ p.title }}</a></li>
{% endif -%}
{% endfor -%}
<li><a href="{{ site.repository }}">GitHub</a></li>
</ul>