--- layout: default --- {% assign toplevels = site.collections | where_exp: "item", "item.sidebar_index" | sort:"sidebar_index" %}
{% for collection in toplevels %} {% assign frontdoc = collection.docs | where_exp: "doc","doc.path == collection.frontpage" | first %} {% unless frontdoc %} {% assign frontdoc = collection.docs[0] %} {% endunless %} {% assign docs_by_sort_key = collection.docs | group_by:"sort_key" | sort:"name", "last" %}
{{ collection.caption }} {% if page.collection == collection.label %} {% for group in docs_by_sort_key %} {% assign docs_sorted = group.items | sort:"title" %} {% for doc in docs_sorted %} {% assign classmodifier="" %} {% if doc.url == page.url %} {% assign classmodifier="disabled" %} {% endif %} {% capture target %}{% include link.html url=doc.url %}{% endcapture %} {% include title.html doc=doc coll=collection %} {% endfor %} {% endfor %} {% endif %}
{% endfor %}
{% if page.title %}

{% include title.html doc=page coll=page.collection %}

{% endif %} {{ content }}