diff --git a/docs/_includes/layouts/pages/basic.njk b/docs/_includes/layouts/pages/basic.njk index 226fb84578..e1ddaa39dd 100755 --- a/docs/_includes/layouts/pages/basic.njk +++ b/docs/_includes/layouts/pages/basic.njk @@ -23,16 +23,14 @@ importElements: {% include 'partials/component/sidenav.njk' %}
-
+
0 %}class="has-toc"{% endif %}> {% include 'partials/component/header.njk' %} - {% if hasToc %} + {% if hasToc and (content | toc).length > 0 %} {% endif %} diff --git a/docs/elements/elements.html b/docs/elements/elements.html index 48a0791b69..683669fe45 100644 --- a/docs/elements/elements.html +++ b/docs/elements/elements.html @@ -53,7 +53,7 @@ {% include 'partials/component/masthead.njk' %} {% include 'partials/component/sidenav.njk' %}
-
+
0 %}class="has-toc"{% endif %}>

{{ doc.alias or (doc.slug | deslugify) }}

{% for tab in doc.tabs %} @@ -63,7 +63,7 @@

{{ doc.alias or (doc.slug | deslugify - {% if hasToc %} + {% if hasToc and (content | toc).length > 0 %}