{%- if site.newToolBar -%}
close-button
{%- if site.navigationSearch -%} {%- endif -%} {%- if Data.megaMenu -%} {%- for item in Data.megaMenu.dropdown -%}
  • {{ item.categoryName }}
    {% if item.featuredLinks.size > 0 %}
    {%- endif -%} {%- if item.links.size > 0 -%}
    OTHER TOOLS
    {% assign array_size = item.links | size %} {% assign half_size = array_size | divided_by: 2 %} {% assign first_half = item.links | slice: 0, half_size %} {% assign second_half = item.links | slice: half_size, array_size %}
      {%- for i in first_half | slice: 0, half -%}
    • {{ i.name }}
    • {%- endfor -%}
    {%- endif -%}
  • {%- endfor -%} {%- endif -%} {%- for item in siteData.megaMenu.dropdown -%}
  • {{ item.categoryName }}
    {%- if item.featuredLinks.size > 0 -%}
    {%- endif -%} {%- if item.links.size > 0 -%}
    OTHER TOOLS
    {% assign array_size = item.links | size %} {% assign half_size = array_size | divided_by: 2 %} {% assign first_half = item.links | slice: 0, half_size %} {% assign second_half = item.links | slice: half_size, array_size %}
      {%- for i in first_half | slice: 0, half -%}
    • {{ i.name }}
    • {%- endfor -%}
    {%- endif -%}
  • {%- endfor -%}
    {%- else -%}
    close-button
    {%- if Data.megaMenu -%} {%- for item in Data.megaMenu.dropdown -%}
  • {{ item.categoryName }}

    {{ Data.nav-link-name }}

    {%- assign count = 0 -%} {%- for i in item.links -%} {%- assign count = count | plus: 1 -%} {%- if count == 1 -%} {%- if site.name == "olarandoms" -%}
    {%- else -%}
    {%- endif -%} {%- endif -%} {%- if count == 6 -%} {{ i.name }}
    {%- assign count = 0 -%} {%- else -%} {{ i.name }} {%- endif -%} {%- endfor -%}
  • {%- endfor -%} {%- endif -%} {%- for item in siteData.megaMenu.dropdown -%}
  • {{ item.categoryName }}

    {{ siteData.megaMenu.nav-link-name }}

    {%- assign count = 0 -%} {%- for i in item.links -%} {%- assign count = count | plus: 1 -%} {%- if count == 1 -%} {%- if site.name == "olarandoms" -%}
    {%- else -%}
    {%- endif -%} {%- endif -%} {%- if count == 6 -%} {{ i.name }}
    {%- assign count = 0 -%} {%- else -%} {{ i.name }} {%- endif -%} {%- endfor -%}
  • {%- endfor -%}
    {%- endif -%}