diff --git a/material/partials/nav-item.html b/material/partials/nav-item.html index 9453d04a7..60f8b4f3c 100644 --- a/material/partials/nav-item.html +++ b/material/partials/nav-item.html @@ -24,12 +24,12 @@ {% elif nav_item == page %}
  • - {% set toc = page.toc %} + {% set toc_ = page.toc %} {% if "\x3ch1 id=" in page.content %} - {% set toc = (toc | first).children %} + {% set toc_ = (toc_ | first).children %} {% endif %} - {% if toc and (toc | first) %} + {% if toc_ and (toc_ | first) %} diff --git a/material/partials/toc.html b/material/partials/toc.html index b53be3907..8177b0ffe 100644 --- a/material/partials/toc.html +++ b/material/partials/toc.html @@ -1,12 +1,12 @@