docs/_includes/toc-date.html

75 lines
2.6 KiB
HTML

<div class="book-summary">
<nav role="navigation">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<div id="book-search-input-link" role="search">
<a href="{{site.baseurl}}/assets/search.html">Click to Search</a>
</div>
<ul class="summary">
{% if page.url == "/index.html" or page.url == "/" %}
<li class="chapter active" data-level="1.1" data-path="{{site.baseurl}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{site.baseurl}}">
{% endif %}
<a href="{{site.baseurl}}/">
{{ site.title | escape }}
</a>
</li>
<li class="divider"></li>
{% for collection in site.collections %}
<!-- <p>{{ collection.label }}</p> -->
{% if collection.output %}
{% if collection.label == "posts" %}
{% assign reversed_posts = site[collection.label] | reverse %}
{% else %}
{% assign reversed_posts = site[collection.label] %}
{% endif %}
{% for post in reversed_posts %}
{% if page.url == post.url %}
<li class="chapter active" data-level="1.2" data-path="{{site.baseurl}}{{post.url}}">
{% else %}
<li class="chapter" data-level="1.1" data-path="{{site.baseurl}}{{post.url}}">
{% endif %}
<a href="{{site.baseurl}}{{post.url}}">
{{ post.title | escape }}
</a>
{% if site.toc.enabled %}
{% if page.url == post.url %}
{% include toc.html html=content h_min=site.toc.h_min h_max=site.toc.h_max %}
{% endif %}
{% endif %}
</li>
{% endfor %}
{% if reversed_posts.size > 0 %}
<li class="divider"></li>
{% endif %}
{% endif %}
{% endfor %}
<li>
<a href="/README">
Readme
</a>
</li>
<li>
<a href="https://github.com/DECENTRALIZEDCLIMATE/docs" target="blank" class="gitbook-link">
Fork it Now!
</a>
</li>
</ul>
</nav>
</div>