{% if include.item.children %} {% assign pageurl = page.url | remove: '.html' %} {% capture capturechild %} {% for child in include.item.children %} {% assign active = "" %} {% assign childurlfolder = child.url | append: '/' %} {% if pageurl == child.url or pageurl == childurlfolder %} {% assign active = "active bd-sidenav-active" %} {% endif %}
  • {% assign childid = include.id | append: '_' | append: forloop.index %} {% include f_sidebar_nav.html item=child id=childid %}
  • {% endfor %} {% endcapture %} {% assign show = "" %} {% if capturechild contains 'bd-sidenav-active' %} {% assign show = "show" %} {% endif %} {% else %} {{include.item.title}} {% endif %}