.path contains match -%}
              {%- assign exclude = true -%}
              {%- break -%}
            {%- endif -%}
          {%- endif -%}

        {%- endfor -%}

        {%- unless exclude -%}
          {%- assign filtered_pages = filtered_pages | push: html_page -%}
        {%- endunless -%}

      {%- endfor -%}

      {% for html_page in filtered_pages %}  

        {%- if page.url contains html_page.url -%}
          {%- assign active_status = "active" -%}
        {%- else -%}
          {%- as