{%- for nav in topnav.children -%} {% set navPath = nav.path | replace("html", "") %} {% set navPath = navPath | replace(".", "") %} {% set activePage = navPath in doc.fileInfo.fullPath %} {% if nav.visible %}
  • {{ nav.title }}
  • {% endif %} {%- endfor -%}
    • {%- for nav in topnav.children -%} {% set navPath = nav.path | replace("html", "") %} {% set navPath = navPath | replace(".", "") %} {% set activePage = navPath in doc.fileInfo.fullPath %} {% if nav.visible %}
    • {{ nav.title }}
    • {% endif %} {%- endfor -%}