go-ethereum/_layouts/sidebar.html
2019-02-18 13:48:23 +01:00

34 lines
No EOL
1.2 KiB
HTML

---
layout: default
---
{% for coll in site.collections %}
{% if coll.sidebar %}
<h2>{{ coll.caption }}</h2>
{% for page in coll.docs %}
<h3>{{ page.title | remove_first: coll.label | remove_first: '/ '}}</h3>
{% endfor %}
{% endif %}
{% endfor %}
<div class="container" style="padding-top: 24px;">
<div class="row">
<div class="col-md-3" id="toc" style="padding-top: 16px;">
{% for group in site.data.sidebar %}
<div class="list-group">
<a class="list-group-item active">{{ group[0] }}</a>
{% for link in group[1] %}
<a class="list-group-item"
href="{% if link.first[1] contains 'http' %}{{ link.first[1] }}{% else %}{{ link.first[1] | prepend: site.baseurl | replace: '//', '/'}}{% endif %}">
{{ link.first[0] }}</a>
{% endfor %}
</div>
{% endfor %}
</div>
<div class="col-md-9" id="content">
{% if page.title %}
<h1 class="featurette-heading">{{ page.title }}</h1>
{% endif %}
{{ content }}
</div>
</div>
</div>