--- layout: default --- {% assign toplevels = site.collections| where_exp: "item", "item.sidebar_index" | sort:"sidebar_index" %}
{% for group in toplevels %} {% assign frontdoc=group.docs| where_exp: "doc","doc.path == group.frontpage"|first %} {% unless frontdoc %} {% assign frontdoc=group.docs[0] %} {% endunless %} {% capture target %}{% include link.html url=frontdoc.url %}{% endcapture %}
{{ group.caption }} {% if page.collection == group.label %} {% for doc in group.docs %} {% 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=group %} {% endfor %} {% endif %}
{% endfor %}
{% if page.title %}

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

{% endif %} {{ content }}