{%- assign sorted_pages = site.html_pages | sort: "menu_weight", "last" -%} {%- if sorted_pages.size > 1 -%} {%- for p in sorted_pages -%} {%- unless p.hidden -%} [ {%- if p.layout == "home" -%} Home {%- else -%} {{- p.title -}} {%- endif -%} ] {%- endunless -%} {%- endfor -%} {%- endif -%}