{% assign sorted_nodes = site.pages | sort:"menutitle" | sort:"menuorder" %} {%- for node in sorted_nodes -%} {%- if node.lang == page.lang and node.menutitle -%}