go-ethereum/_layouts/sidebar.html

38 lines
1.3 KiB
HTML
Raw Normal View History

---
layout: default
---
2019-04-04 17:21:15 -05:00
{% assign toplevels = site.collections| where_exp: "item", "item.sidebar_index" | sort:"sidebar_index" %}
<div class="container" style="padding-top: 24px;">
2019-04-04 17:21:15 -05:00
<div class="row">
<div class="col-md-3" id="toc" style="padding-top: 16px;">
{% 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 %}
<div class="list-group">
<a class="list-group-item active" href="{{ target |strip }}">{{ group.caption }}</a>
{% 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 %}
<a class="list-group-item {{classmodifier}}" href="{{ target |strip }}">{% include title.html doc=doc coll=group %}</a>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
2019-04-04 17:21:15 -05:00
<div class="col-md-9" id="content">
{% if page.title %}
<h1 class="featurette-heading">{% include title.html doc=page coll=page.collection %}</h1>
{% endif %}
{{ content }}
</div>
</div>
</div>