Skip to content

Commit

Permalink
anew
Browse files Browse the repository at this point in the history
  • Loading branch information
utksi committed Jan 16, 2025
1 parent 2e43e4d commit e83a795
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _scripts/search.liquid.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ ninja.data = [
},
},
{%- assign sorted_pages = site.pages | where:"nav",true | sort: "nav_order" -%}
// somehow this doesn't exclude nav: false pages {%- assign sorted_pages = site.pages | sort: "nav_order" -%}
{%- for p in sorted_pages -%}
{%- if p.autogen == null -%}
// since p.nav filter is already fulfilled with the 'where' conditions {%- if p.nav and p.autogen == null -%}
{%- if p.autogen == null -%}
{%- if p.dropdown -%}
{%- for child in p.children -%}
{%- unless child.title == 'divider' -%}
Expand Down

0 comments on commit e83a795

Please sign in to comment.