Simply couple of includes in the docs site (#7607)

Merge pull request 7607
This commit is contained in:
Ashwin Maroli 2019-04-07 16:23:57 +05:30 committed by jekyllbot
parent c68ccedc21
commit d6ece561b7
3 changed files with 2 additions and 12 deletions

View File

@ -11,11 +11,7 @@
{% if page.url contains p.url %}current{% endif %}
{% endif %}">
<a href="{{ p.url }}">
{% if p.menu_name %}
{{ p.menu_name }}
{% else %}
{{ p.title }}
{% endif %}
{{ p.menu_name | default: p.title }}
</a>
</li>
{% endfor %}

View File

@ -6,11 +6,7 @@
{% for item in section.docs %}
{% assign p = site.documents | where: "url", item.link | first %}
<option value="{{ p.url }}">
{% if p.menu_name %}
{{ p.menu_name }}
{% else %}
{{ p.title }}
{% endif %}
{{ p.menu_name | default: p.title }}
</option>
{% endfor %}
</optgroup>

View File

@ -1,5 +1,3 @@
{% assign docs = site.docs | where_exp: "doc", "doc.url contains '/step-by-step/'" %}
{% for tutorial in tutorials %}