Explorar o código

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

Daniel Rudolf %!s(int64=9) %!d(string=hai) anos
pai
achega
56cd0cdb23
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      _layouts/docs.html

+ 3 - 1
_layouts/docs.html

@@ -30,7 +30,9 @@
                         <ul>
                         <ul>
                             {% if page.collection %}
                             {% if page.collection %}
                                 {% for item in items %}
                                 {% 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 %}
                                 {% endfor %}
                             {% else %}
                             {% else %}
                                 {% include tocItem.html toc=page.toc%}
                                 {% include tocItem.html toc=page.toc%}