diff --git a/material/partials/nav-item.html b/material/partials/nav-item.html index f55ca979f..c1a24a1a0 100644 --- a/material/partials/nav-item.html +++ b/material/partials/nav-item.html @@ -40,10 +40,10 @@ {% set toc = page.toc %} {% set first = toc | first %} - {% if first is defined and first.level == 1 %} + {% if first and first.level == 1 %} {% set toc = first.children %} {% endif %} - {% if toc is iterable %} + {% if toc %}