{# https://github.com/mkdocs/mkdocs/blob/1.4.3/mkdocs/themes/readthedocs/nav.html #} {# All changes must start and end with comments " TACC: " and " /TACC " #} {{ nav_item.title }} {%- set navlevel = navlevel + 1 %} {%- if navlevel <= config.theme.navigation_depth and ((nav_item.is_page and nav_item.toc.items and (not config.theme.titles_only and (nav_item == page or not config.theme.collapse_navigation))) or (nav_item.is_section and nav_item.children)) %}