19 lines
486 B
HTML
19 lines
486 B
HTML
<ul>
|
|
{% for item in include.items %}
|
|
{% assign p = site.documents | where: "url", item.link | first %}
|
|
<li class="{% if p.url == '/docs/' %}
|
|
{% if page.url == '/docs/' %}current{% endif %}
|
|
{% else %}
|
|
{% if page.url contains p.url %}current{% endif %}
|
|
{% endif %}">
|
|
<a href="{{ p.url }}">
|
|
{% if p.menu_name %}
|
|
{{ p.menu_name }}
|
|
{% else %}
|
|
{{ p.title }}
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|