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

View File

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

View File

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