2019-03-27 03:31:41 -05:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
2019-04-04 17:21:15 -05:00
|
|
|
|
2019-11-05 06:46:00 -06:00
|
|
|
{% assign toplevels = site.collections | where_exp: "item", "item.sidebar_index" | sort:"sidebar_index" %}
|
2019-03-27 03:31:41 -05:00
|
|
|
<div class="container" style="padding-top: 24px;">
|
2019-04-04 17:21:15 -05:00
|
|
|
<div class="row">
|
2019-11-05 06:46:00 -06:00
|
|
|
<div class="col-md-3" id="toc" style="padding-top: 16px;">
|
|
|
|
{% for collection in toplevels %}
|
|
|
|
{% assign frontdoc = collection.docs | where_exp: "doc","doc.path == collection.frontpage" | first %}
|
|
|
|
{% unless frontdoc %}
|
|
|
|
{% assign frontdoc = collection.docs[0] %}
|
|
|
|
{% endunless %}
|
|
|
|
{% capture target %}{% include link.html url=frontdoc.url %}{% endcapture %}
|
|
|
|
<div class="list-group">
|
|
|
|
<a class="list-group-item active" href="{{ target |strip }}">{{ collection.caption }}</a>
|
|
|
|
{% if page.collection == collection.label %}
|
|
|
|
{% assign docs_by_sort_key = collection.docs | group_by:"sort_key" | sort:"name", "last" %}
|
|
|
|
{% 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 %}
|
|
|
|
<a class="list-group-item {{classmodifier}}" href="{{ target |strip }}">{% include title.html doc=doc coll=collection %}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2019-04-04 17:21:15 -05:00
|
|
|
</div>
|
2019-11-05 06:46:00 -06:00
|
|
|
{% endfor %}
|
2019-03-27 03:31:41 -05:00
|
|
|
</div>
|
2019-04-04 17:21:15 -05:00
|
|
|
<div class="col-md-9" id="content">
|
2019-11-05 06:46:00 -06:00
|
|
|
{% if page.title %}
|
|
|
|
<h1 class="featurette-heading">{% include title.html doc=page coll=page.collection %}</h1>
|
|
|
|
{% endif %}
|
|
|
|
{{ content }}
|
2019-04-04 17:21:15 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|