mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed build error after MkDocs upgrade
This commit is contained in:
parent
be7916a8b0
commit
4bc97f1f36
@ -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 %}
|
||||
|
@ -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" %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user