Browse Source

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

Daniel Rudolf 9 years ago
parent
commit
56cd0cdb23
1 changed files with 3 additions and 1 deletions
  1. 3 1
      _layouts/docs.html

+ 3 - 1
_layouts/docs.html

@@ -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%}