{#-
Theme override of the documentation site (theme.custom_dir in zensical.toml): partials/tabs.html of zensical-ui 0.0.41
(Zensical 0.0.74), with a second row of tabs below them when the children of the active tab hold sections (Reference,
User Guide): its index page as "Overview", then one tab per section, opening its first page. The other pages of the
tab stay in the sidebar, "Overview" is active on them. It is hidden on small screens like the tabs (class md-tabs),
styled by docs/assets/theme.css. Compare with the upstream file when Zensical is upgraded.
-#}
{% import "partials/tabs-item.html" as item with context %}
{% for nav_item in nav.items %}
{% if nav_item.active and nav_item.children %}
{% set _ = namespace(sections = false, page_active = false) %}
{% for child in nav_item.children %}
{% if child.children %}
{% set _.sections = true %}
{% elif child.active %}
{% set _.page_active = true %}
{% endif %}
{% endfor %}
{% if _.sections %}
{% endif %}
{% endif %}
{% endfor %}