Check for item.toc and item.nav in _layouts/docs.html

This commit is contained in:
Daniel Rudolf 2015-11-04 20:08:58 +01:00
parent bd55fd7590
commit 56cd0cdb23

View file

@ -30,7 +30,9 @@
<ul>
{% if page.collection %}
{% for item in items %}
{% include tocItem.html toc=item.toc %}
{% if item.toc and item.nav > 0 %}
{% include tocItem.html toc=item.toc %}
{% endif %}
{% endfor %}
{% else %}
{% include tocItem.html toc=page.toc%}