{%- if include.items -%}
{%- for item in include.items -%} {%- if item.text == "-" -%}
{%- else -%}
{%- if item.url -%} {%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}} {%- elsif item.onclick -%} {%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}} {%- else -%}
{%- if item.icon -%}{%- include functions/get_icon.liquid icon=item.icon -%}{%- endif -%}{{- item.text -}}
{%- endif -%} {%- if item.items -%} {%- include components/navmenu.items.liquid items=item.items -%} {%- elsif item.taxonomy -%} {%- include components/navmenu.items.liquid taxonomy=item.taxonomy -%} {%- endif -%}
{%- endif -%} {%- endfor -%}
{%- elsif include.taxonomy -%} {%- case include.taxonomy -%} {%- when "categories" -%} {%- assign collection = site.categories -%} {%- when "tags" -%} {%- assign collection = site.tags -%} {%- endcase -%}
{%- for item in collection -%} {%- assign text = item | first -%}
{{- text -}} ({{- item | last | size -}})
{%- endfor -%}
{%- endif -%}