Fixed build error after MkDocs upgrade

This commit is contained in:
squidfunk 2018-07-29 16:55:17 +02:00
parent be7916a8b0
commit 4bc97f1f36
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
</li>
{% 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 %}

View File

@ -41,7 +41,7 @@
{% set title = title | default(nav_item.title) %}
<!-- Recurse, if the first item has nested items -->
{% 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" %}