Check for item.toc and item.nav in _layouts/docs.html
This commit is contained in:
parent
bd55fd7590
commit
56cd0cdb23
1 changed files with 3 additions and 1 deletions
|
@ -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%}
|
||||
|
|
Loading…
Add table
Reference in a new issue