From 4bc97f1f36e5c2cfc1a8badd3285c1e84bb0bfe7 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 29 Jul 2018 16:55:17 +0200 Subject: [PATCH] Fixed build error after MkDocs upgrade --- material/partials/tabs-item.html | 2 +- src/partials/tabs-item.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/material/partials/tabs-item.html b/material/partials/tabs-item.html index 686b5a59b..cd97286ca 100644 --- a/material/partials/tabs-item.html +++ b/material/partials/tabs-item.html @@ -12,7 +12,7 @@ {% elif nav_item.children and nav_item.children | length > 0 %} {% set title = title | default(nav_item.title) %} - {% if (nav_item.children | first).children | length > 0 %} + {% if (nav_item.children | first).children %} {% set nav_item = nav_item.children | first %} {% include "partials/tabs-item.html" %} {% else %} diff --git a/src/partials/tabs-item.html b/src/partials/tabs-item.html index 1f6c5d39b..56298f270 100644 --- a/src/partials/tabs-item.html +++ b/src/partials/tabs-item.html @@ -41,7 +41,7 @@ {% set title = title | default(nav_item.title) %} - {% if (nav_item.children | first).children | length > 0 %} + {% if (nav_item.children | first).children %} {% set nav_item = nav_item.children | first %} {% include "partials/tabs-item.html" %}