From 9e6d347db095277d72ec51528d5f430b14e33235 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Mon, 2 Jan 2017 08:57:19 +0100 Subject: [PATCH] Fix deprecation warning --- material/partials/nav-item.html | 6 +++--- material/partials/toc.html | 8 ++++---- src/partials/nav-item.html | 6 +++--- src/partials/toc.html | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) 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 @@